From ea4d15519dd6a71c6117af48018269daa65acbde Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Tue, 10 Feb 2026 16:54:46 +0100 Subject: [PATCH] Use totalZ rather than the deprecated totalZElevation. --- spine-ts/spine-construct3/src/c3runtime/instance.ts | 2 +- spine-ts/spine-construct3/src/instance.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-ts/spine-construct3/src/c3runtime/instance.ts b/spine-ts/spine-construct3/src/c3runtime/instance.ts index 4c3ab785d..9216fb437 100644 --- a/spine-ts/spine-construct3/src/c3runtime/instance.ts +++ b/spine-ts/spine-construct3/src/c3runtime/instance.ts @@ -163,7 +163,7 @@ class SpineC3Instance extends globalThis.ISDKWorldInstanceBase { this.matrix.update( this.x + this.propOffsetX, this.y + this.propOffsetY, - this.totalZElevation, + this.totalZ, this.angle + this.propOffsetAngle, this.width / this.spineBounds.width * this.propScaleX * (this.isFlippedX ? -1 : 1), this.height / this.spineBounds.height * this.propScaleY); diff --git a/spine-ts/spine-construct3/src/instance.ts b/spine-ts/spine-construct3/src/instance.ts index f71c8a54b..28d7ded7f 100644 --- a/spine-ts/spine-construct3/src/instance.ts +++ b/spine-ts/spine-construct3/src/instance.ts @@ -572,7 +572,7 @@ class SpineC3PluginInstance extends SDK.IWorldInstanceBase { this.matrix.update( this._inst.GetX() + this.propOffsetX, this._inst.GetY() + this.propOffsetY, - this._inst.GetTotalZElevation(), + this._inst.GetTotalZ(), this._inst.GetAngle() + this.propOffsetAngle, actualScaleX, actualScaleY);