fix bug: named joint should be included in subset

This commit is contained in:
David Rose 2006-01-31 05:58:28 +00:00
parent d8a5555d87
commit 979e202f90
1 changed files with 6 additions and 0 deletions

View File

@ -210,6 +210,12 @@ void MovingPartBase::
bind_hierarchy(AnimGroup *anim, int channel_index, int &joint_index,
bool is_included, BitArray &bound_joints,
const PartSubset &subset) {
if (subset.matches_include(get_name())) {
is_included = true;
} else if (subset.matches_exclude(get_name())) {
is_included = false;
}
if (chan_cat.is_debug()) {
chan_cat.debug()
<< "binding " << *this << " to " << *anim << ", is_included = "