This commit is contained in:
Aaro Varis
2024-10-27 12:44:15 +02:00
parent 339306e47f
commit 150c497501
5 changed files with 5 additions and 5 deletions

View File

@@ -278,7 +278,7 @@ namespace VRCBoard.Components
}
GUILayout.EndVertical();
}
if (renderer) renderer.SetPropertyBlock(propertyBlock,script.materialIndex);
if (renderer && !Application.isPlaying) renderer.SetPropertyBlock(propertyBlock,script.materialIndex);
EditorGUILayout.EndVertical();
}