diff --git a/Assets/Scripts/tools/utils/HighlightStyles/MeshCycler.cs b/Assets/Scripts/tools/utils/HighlightStyles/MeshCycler.cs index fe79016b..b9a11379 100644 --- a/Assets/Scripts/tools/utils/HighlightStyles/MeshCycler.cs +++ b/Assets/Scripts/tools/utils/HighlightStyles/MeshCycler.cs @@ -70,7 +70,7 @@ public static Mesh GetTempMeshForMeshMatId(int meshId, int materialId, out bool mesh = new Mesh(); } - matDict[meshId] = mesh; + matDict[materialId] = mesh; return mesh; }