mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
move check_hierarchy()
This commit is contained in:
parent
0284746bc2
commit
434b665d4c
@ -213,16 +213,16 @@ bind_anim(AnimBundle *anim, int hierarchy_match_flags,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!check_hierarchy(anim, NULL, hierarchy_match_flags)) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
JointTransformList::iterator jti;
|
JointTransformList::iterator jti;
|
||||||
for (jti = _frozen_joints.begin(); jti != _frozen_joints.end(); ++jti) {
|
for (jti = _frozen_joints.begin(); jti != _frozen_joints.end(); ++jti) {
|
||||||
anim->make_child_fixed((*jti).name, (*jti).transform);
|
anim->make_child_fixed((*jti).name, (*jti).transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!check_hierarchy(anim, NULL, hierarchy_match_flags)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
plist<int> holes;
|
plist<int> holes;
|
||||||
int channel_index = 0;
|
int channel_index = 0;
|
||||||
pick_channel_index(holes, channel_index);
|
pick_channel_index(holes, channel_index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user