getNearestBone static method
dynamic
getNearestBone(
- dynamic bone,
- dynamic names
Implementation
static getNearestBone(bone, names) {
while (bone.isBone) {
if (names.indexOf(bone.name) != -1) {
return bone;
}
bone = bone.parent;
}
}