mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed NaN issue when SkeletonGraphic.MatchRectTransform() is called after manual Initialize() without following Update(0).
This commit is contained in:
parent
a182cdb169
commit
a67fd18293
@ -412,6 +412,7 @@ namespace Spine.Unity {
|
||||
}
|
||||
|
||||
public bool MatchRectTransformWithBounds () {
|
||||
if (!wasUpdatedAfterInit) Update(0);
|
||||
UpdateMesh();
|
||||
|
||||
if (!this.allowMultipleCanvasRenderers)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user