mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
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();
|
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user