[osg-users] what's wrong with removechild
Jannik Heller
scrawl at baseoftrash.de
Sat Jul 25 06:50:05 PDT 2015
Looks like you aren't showing us the whole code. I don't see a removeChild in the attached file.
In general, when removing a node you need to remove it as child of its particular parent(s) (which is not necessarily the root node).
Code:
while (node->getNumParents())
node->getParent(0)->removeChild(node);
[/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64473#64473
More information about the osg-users
mailing list