Эх сурвалжийг харах

[unity] Fixed NaN issue when `SkeletonGraphic.MatchRectTransform()` is called after manual `Initialize()` without following `Update(0)`.

Harald Csaszar 3 жил өмнө
parent
commit
a67fd18293

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

@@ -412,6 +412,7 @@ namespace Spine.Unity {
 		}
 
 		public bool MatchRectTransformWithBounds () {
+			if (!wasUpdatedAfterInit) Update(0);
 			UpdateMesh();
 
 			if (!this.allowMultipleCanvasRenderers)