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())
Hi,
I want to pick one node using mouse. then the node deleted. but I failed. I
don't know why. the nodepick.h attached.
the osg::Node* pNode can be picked. and it can be changed to red.
but the following mViewer-getSceneData()-asGroup()-removeChild(pNode);
failed.
I also used
2 matches
Mail list logo