From fae008bee25a922c3a9db0435cd5889a987ac0e6 Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Wed, 12 Aug 2009 19:13:27 +0000 Subject: [PATCH] fix for flattenStrong nodepath cutting --- panda/src/pgraph/sceneGraphReducer.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/panda/src/pgraph/sceneGraphReducer.cxx b/panda/src/pgraph/sceneGraphReducer.cxx index 5baffd73f8..8cd5a35934 100644 --- a/panda/src/pgraph/sceneGraphReducer.cxx +++ b/panda/src/pgraph/sceneGraphReducer.cxx @@ -754,9 +754,7 @@ do_flatten_siblings(PandaNode *parent_node, PandaNode *child1, // Make sure the new child list has child1's children first, // followed by child2's children. - child1->steal_children(child2); - - new_child->replace_node(child1); + child1->replace_node(child2); new_child->replace_node(child2); return new_child;