Skip to content

Commit ea4d155

Browse files
committed
Use totalZ rather than the deprecated totalZElevation.
1 parent bc6f750 commit ea4d155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spine-ts/spine-construct3/src/c3runtime/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class SpineC3Instance extends globalThis.ISDKWorldInstanceBase {
163163
this.matrix.update(
164164
this.x + this.propOffsetX,
165165
this.y + this.propOffsetY,
166-
this.totalZElevation,
166+
this.totalZ,
167167
this.angle + this.propOffsetAngle,
168168
this.width / this.spineBounds.width * this.propScaleX * (this.isFlippedX ? -1 : 1),
169169
this.height / this.spineBounds.height * this.propScaleY);

spine-ts/spine-construct3/src/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ class SpineC3PluginInstance extends SDK.IWorldInstanceBase {
572572
this.matrix.update(
573573
this._inst.GetX() + this.propOffsetX,
574574
this._inst.GetY() + this.propOffsetY,
575-
this._inst.GetTotalZElevation(),
575+
this._inst.GetTotalZ(),
576576
this._inst.GetAngle() + this.propOffsetAngle,
577577
actualScaleX,
578578
actualScaleY);

0 commit comments

Comments
 (0)