mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
First skeleton update only after scaleX/Y is set.
This commit is contained in:
parent
649209459f
commit
6a819315e0
@ -495,11 +495,11 @@ class SpineC3Instance extends globalThis.ISDKWorldInstanceBase {
|
|||||||
|
|
||||||
this._setSkin();
|
this._setSkin();
|
||||||
|
|
||||||
this.update(0);
|
|
||||||
|
|
||||||
this.skeleton.scaleX = this.isFlippedX ? -this.propScaleX : this.propScaleX;
|
this.skeleton.scaleX = this.isFlippedX ? -this.propScaleX : this.propScaleX;
|
||||||
this.skeleton.scaleY = this.propScaleY;
|
this.skeleton.scaleY = this.propScaleY;
|
||||||
|
|
||||||
|
this.update(0);
|
||||||
|
|
||||||
this.skeletonLoaded = true;
|
this.skeletonLoaded = true;
|
||||||
this._trigger(C3.Plugins.EsotericSoftware_SpineConstruct3.Cnds.OnSkeletonLoaded);
|
this._trigger(C3.Plugins.EsotericSoftware_SpineConstruct3.Cnds.OnSkeletonLoaded);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user