diff --git a/spine-ts/spine-core/src/DrawOrder.ts b/spine-ts/spine-core/src/DrawOrder.ts index e2f3350dd..0c76c79c3 100644 --- a/spine-ts/spine-core/src/DrawOrder.ts +++ b/spine-ts/spine-core/src/DrawOrder.ts @@ -61,7 +61,7 @@ export class DrawOrder { } /** Sets the applied pose to the constrained pose, in anticipation of the applied pose being modified by constraints. */ - useConstrained () { + constrained () { this.appliedPose = this.constrainedPose; } diff --git a/spine-ts/spine-core/src/Posed.ts b/spine-ts/spine-core/src/Posed.ts index c35d5465c..fe5226c13 100644 --- a/spine-ts/spine-core/src/Posed.ts +++ b/spine-ts/spine-core/src/Posed.ts @@ -82,7 +82,7 @@ export abstract class Posed< } /** Sets the applied pose to the constrained pose, in anticipation of the applied pose being modified by constraints. */ - useConstrained () { + constrained () { this.appliedPose = this.constrainedPose; } diff --git a/spine-ts/spine-core/src/Skeleton.ts b/spine-ts/spine-core/src/Skeleton.ts index 627da39a9..00587acc7 100644 --- a/spine-ts/spine-core/src/Skeleton.ts +++ b/spine-ts/spine-core/src/Skeleton.ts @@ -230,7 +230,7 @@ export class Skeleton { // biome-ignore lint/suspicious/noExplicitAny: reference runtime does not restrict to specific types constrained (object: Posed) { if (object.pose === object.appliedPose) { - object.useConstrained(); + object.constrained(); this.resetCache.push(object); } } diff --git a/spine-ts/spine-core/src/Slider.ts b/spine-ts/spine-core/src/Slider.ts index a8318c433..f65e57e18 100644 --- a/spine-ts/spine-core/src/Slider.ts +++ b/spine-ts/spine-core/src/Slider.ts @@ -106,7 +106,7 @@ export class Slider extends Constraint { if (isSlotTimeline(t)) skeleton.constrained(slots[t.slotIndex]); else if (t instanceof DrawOrderTimeline || t instanceof DrawOrderFolderTimeline) - skeleton.drawOrder.useConstrained(); + skeleton.drawOrder.constrained(); else if (t instanceof PhysicsConstraintTimeline) { if (t.constraintIndex === -1) { for (let ii = 0; ii < physicsCount; ii++)