Browse Source

[unity] Fixed a crash related to importing and stencil mode auto-updater.

Harald Csaszar 6 năm trước cách đây
mục cha
commit
599071028b

+ 1 - 1
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs

@@ -480,7 +480,7 @@ namespace Spine.Unity {
 		private void AssignSpriteMaskMaterials()
 		private void AssignSpriteMaskMaterials()
 		{
 		{
 			#if UNITY_EDITOR
 			#if UNITY_EDITOR
-			if (!Application.isPlaying) {
+			if (!Application.isPlaying && !UnityEditor.EditorApplication.isUpdating) {
 				EditorFixStencilCompParameters();
 				EditorFixStencilCompParameters();
 			}
 			}
 			#endif
 			#endif