sortTransformConstraint method
void
sortTransformConstraint(
- TransformConstraint constraint
inherited
Implementation
void sortTransformConstraint(TransformConstraint constraint) {
sortBone(constraint.target!);
final List<Bone> constrained = constraint.bones;
final int boneCount = constrained.length;
if (constraint.data.local) {
for (int i = 0; i < boneCount; i++) {
final Bone child = constrained[i];
sortBone(child.parent!);
if (!_updateCache.contains(child)) _updateCacheReset.add(child);
}
} else {
for (int i = 0; i < boneCount; i++) {
sortBone(constrained[i]);
}
}
_updateCache.add(constraint);
for (int ii = 0; ii < boneCount; ii++) {
sortReset(constrained[ii].children);
}
for (int ii = 0; ii < boneCount; ii++) {
constrained[ii].sorted = true;
}
}