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

This commit is contained in:
Harald Csaszar 2021-11-11 15:09:22 +01:00
parent a182cdb169
commit a67fd18293

View File

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