mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-10 04:36:57 +08:00
Use totalZ rather than the deprecated totalZElevation.
This commit is contained in:
parent
bc6f750a39
commit
ea4d15519d
@ -163,7 +163,7 @@ class SpineC3Instance extends globalThis.ISDKWorldInstanceBase {
|
|||||||
this.matrix.update(
|
this.matrix.update(
|
||||||
this.x + this.propOffsetX,
|
this.x + this.propOffsetX,
|
||||||
this.y + this.propOffsetY,
|
this.y + this.propOffsetY,
|
||||||
this.totalZElevation,
|
this.totalZ,
|
||||||
this.angle + this.propOffsetAngle,
|
this.angle + this.propOffsetAngle,
|
||||||
this.width / this.spineBounds.width * this.propScaleX * (this.isFlippedX ? -1 : 1),
|
this.width / this.spineBounds.width * this.propScaleX * (this.isFlippedX ? -1 : 1),
|
||||||
this.height / this.spineBounds.height * this.propScaleY);
|
this.height / this.spineBounds.height * this.propScaleY);
|
||||||
|
|||||||
@ -572,7 +572,7 @@ class SpineC3PluginInstance extends SDK.IWorldInstanceBase {
|
|||||||
this.matrix.update(
|
this.matrix.update(
|
||||||
this._inst.GetX() + this.propOffsetX,
|
this._inst.GetX() + this.propOffsetX,
|
||||||
this._inst.GetY() + this.propOffsetY,
|
this._inst.GetY() + this.propOffsetY,
|
||||||
this._inst.GetTotalZElevation(),
|
this._inst.GetTotalZ(),
|
||||||
this._inst.GetAngle() + this.propOffsetAngle,
|
this._inst.GetAngle() + this.propOffsetAngle,
|
||||||
actualScaleX,
|
actualScaleX,
|
||||||
actualScaleY);
|
actualScaleY);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user