From 599071028b90a34f3dbcbc26c09e8b3bd6abc051 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Sun, 16 Jun 2019 22:26:18 +0200 Subject: [PATCH] [unity] Fixed a crash related to importing and stencil mode auto-updater. --- .../Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs index 307ffd8c9..1051f16cd 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs @@ -480,7 +480,7 @@ namespace Spine.Unity { private void AssignSpriteMaskMaterials() { #if UNITY_EDITOR - if (!Application.isPlaying) { + if (!Application.isPlaying && !UnityEditor.EditorApplication.isUpdating) { EditorFixStencilCompParameters(); } #endif