[osg-users] what's wrong with removechild

LUO Jianguo luojianguo at tsinghua.org.cn
Fri Jul 24 21:03:45 PDT 2015


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 m_Rt->removeChild(pNode); failed again. 

So puzzled. help me plz.


Thank you!

Cheers,
LUO

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64470#64470




Attachments: 
http://forum.openscenegraph.org//files/nodepick_135.h





More information about the osg-users mailing list