[ts] useConstrained to constrained().

This commit is contained in:
Davide Tantillo 2026-03-26 12:02:18 +01:00
parent 9609fe6e5e
commit e89a7e15d2
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -230,7 +230,7 @@ export class Skeleton {
// biome-ignore lint/suspicious/noExplicitAny: reference runtime does not restrict to specific types
constrained (object: Posed<any, any>) {
if (object.pose === object.appliedPose) {
object.useConstrained();
object.constrained();
this.resetCache.push(object);
}
}

View File

@ -106,7 +106,7 @@ export class Slider extends Constraint<Slider, SliderData, SliderPose> {
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++)