sortIkConstraint method
void
sortIkConstraint(
- IkConstraint constraint
inherited
Implementation
void sortIkConstraint(IkConstraint constraint) {
final Bone target = constraint.target!;
sortBone(target);
final List<Bone> constrained = constraint.bones;
final Bone parent = constrained[0];
sortBone(parent);
if (constrained.length > 1) {
final Bone child = constrained[constrained.length - 1];
if (!_updateCache.contains(child)) _updateCacheReset.add(child);
}
_updateCache.add(constraint);
sortReset(parent.children);
constrained[constrained.length - 1].sorted = true;
}