浏览代码

[unity] Fixed compile error on Unity 2017.1 of last commits related to pull request #2351, commit 01273670.

Harald Csaszar 2 年之前
父节点
当前提交
f44490b1f3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      spine-unity/Assets/Spine/Runtime/spine-unity/Components/EditorSkeletonPlayer.cs

+ 4 - 0
spine-unity/Assets/Spine/Runtime/spine-unity/Components/EditorSkeletonPlayer.cs

@@ -130,7 +130,11 @@ namespace Spine.Unity {
 			oldTime = EditorApplication.timeSinceStartup;
 
 			// Force repaint to update animation smoothly
+#if UNITY_2017_2_OR_NEWER
 			EditorApplication.QueuePlayerLoopUpdate();
+#else
+			SceneView.RepaintAll();
+#endif
 		}
 
 		private class SkeletonAnimationWrapper : IEditorSkeletonWrapper {