Browse Source

move check_hierarchy()

David Rose 18 years ago
parent
commit
434b665d4c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      panda/src/chan/partBundle.cxx

+ 4 - 4
panda/src/chan/partBundle.cxx

@@ -213,16 +213,16 @@ bind_anim(AnimBundle *anim, int hierarchy_match_flags,
       return NULL;
     }
   }
+
+  if (!check_hierarchy(anim, NULL, hierarchy_match_flags)) {
+    return NULL;
+  }
   
   JointTransformList::iterator jti;
   for (jti = _frozen_joints.begin(); jti != _frozen_joints.end(); ++jti) {
     anim->make_child_fixed((*jti).name, (*jti).transform);
   }
 
-  if (!check_hierarchy(anim, NULL, hierarchy_match_flags)) {
-    return NULL;
-  }
-
   plist<int> holes;
   int channel_index = 0;
   pick_channel_index(holes, channel_index);