Преглед на файлове

[unity] Fixed exception at SkeletonMecanim with UpdateTiming InLateUpdate. Closes #2392.

Harald Csaszar преди 1 година
родител
ревизия
cc352cf026
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs
  2. 1 1
      spine-unity/Assets/Spine/package.json

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

@@ -167,7 +167,7 @@ namespace Spine.Unity {
 		}
 
 		public override void LateUpdate () {
-			if (updateTiming == UpdateTiming.InLateUpdate && valid)
+			if (updateTiming == UpdateTiming.InLateUpdate && valid &&  translator != null && translator.Animator != null)
 				UpdateAnimation();
 			// instantiation can happen from Update() after this component, leading to a missing Update() call.
 			if (!wasUpdatedAfterInit) Update();

+ 1 - 1
spine-unity/Assets/Spine/package.json

@@ -2,7 +2,7 @@
 	"name": "com.esotericsoftware.spine.spine-unity",
 	"displayName": "spine-unity Runtime",
 	"description": "This plugin provides the spine-unity runtime core.",
-	"version": "4.1.27",
+	"version": "4.1.28",
 	"unity": "2018.3",
 	"author": {
 		"name": "Esoteric Software",