don't lose geometry parented to a joint when the joint is removed.
This commit is contained in:
parent
0f53dce60d
commit
b47f037907
|
|
@ -108,6 +108,7 @@ do_finish_reparent(EggJointPointer *new_parent) {
|
|||
EggGroupNode *egg_parent = _joint->get_parent();
|
||||
if (egg_parent != (EggGroupNode *)NULL) {
|
||||
egg_parent->remove_child(_joint.p());
|
||||
egg_parent->steal_children(*_joint);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue