Browse Source

fix bug: named joint should be included in subset

David Rose 20 years ago
parent
commit
979e202f90
1 changed files with 6 additions and 0 deletions
  1. 6 0
      panda/src/chan/movingPartBase.cxx

+ 6 - 0
panda/src/chan/movingPartBase.cxx

@@ -210,6 +210,12 @@ void MovingPartBase::
 bind_hierarchy(AnimGroup *anim, int channel_index, int &joint_index, 
 bind_hierarchy(AnimGroup *anim, int channel_index, int &joint_index, 
                bool is_included, BitArray &bound_joints,
                bool is_included, BitArray &bound_joints,
                const PartSubset &subset) {
                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()) {
   if (chan_cat.is_debug()) {
     chan_cat.debug()
     chan_cat.debug()
       << "binding " << *this << " to " << *anim << ", is_included = "
       << "binding " << *this << " to " << *anim << ", is_included = "