From 57dadbdd81ffdf0d8c1f8d2b1aefb872c77d0ba5 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 12 Aug 2021 11:35:29 +0200 Subject: [PATCH] [unity] Minor improvement (added #if UNITY_EDITOR) after merging pull request, see #1939, see commit 5fd4494e. --- .../Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs | 2 ++ 1 file changed, 2 insertions(+) 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 23e186ba1..4de71b770 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs @@ -320,10 +320,12 @@ namespace Spine.Unity { } #endif + #if UNITY_EDITOR void OnEnable() { if (!Application.isPlaying) LateUpdate(); } + #endif void OnDisable () { if (clearStateOnDisable && valid)