[c][cpp][flutter][ios] Port of 64ed135e4939d9672f1ab48bdcec645ee50c37ef

This commit is contained in:
Mario Zechner 2025-09-29 16:16:39 +02:00
parent 28f93e993a
commit 335308a7ef
2 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ void Slider::sort(Skeleton &skeleton) {
skeleton.constrained((Posed &) *constraints[timeline->getConstraintIndex()]); skeleton.constrained((Posed &) *constraints[timeline->getConstraintIndex()]);
} else if (t->getRTTI().instanceOf(ConstraintTimeline::rtti)) { } else if (t->getRTTI().instanceOf(ConstraintTimeline::rtti)) {
ConstraintTimeline *timeline = (ConstraintTimeline *) t; ConstraintTimeline *timeline = (ConstraintTimeline *) t;
skeleton.constrained((Posed &) *constraints[timeline->getConstraintIndex()]); int index = timeline->getConstraintIndex();
if (index != -1) skeleton.constrained((Posed &) *constraints[timeline->getConstraintIndex()]);
} }
} }
} }