Browse Source

don't lose geometry parented to a joint when the joint is removed.

David Rose 22 years ago
parent
commit
b47f037907
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pandatool/src/eggcharbase/eggJointNodePointer.cxx

+ 1 - 0
pandatool/src/eggcharbase/eggJointNodePointer.cxx

@@ -108,6 +108,7 @@ do_finish_reparent(EggJointPointer *new_parent) {
     EggGroupNode *egg_parent = _joint->get_parent();
     EggGroupNode *egg_parent = _joint->get_parent();
     if (egg_parent != (EggGroupNode *)NULL) {
     if (egg_parent != (EggGroupNode *)NULL) {
       egg_parent->remove_child(_joint.p());
       egg_parent->remove_child(_joint.p());
+      egg_parent->steal_children(*_joint);
     }
     }
 
 
   } else {
   } else {