From 46f225246714e0ea38fd04070e47d6b60ba6f643 Mon Sep 17 00:00:00 2001 From: Klara Date: Mon, 9 Dec 2024 13:27:12 +0000 Subject: [PATCH] Fix bug in MeshCycler --- Assets/Scripts/tools/utils/HighlightStyles/MeshCycler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }