Paul Melis | 2 Jan 2009 14:28
Picon

Re: Node Names After Picking

Ryan Morris wrote:
> I have a scene populated with nodes loaded from .osg files, I set
> their names with node->setName(), but when I pick them and I perform a
> node->getName() it returns the name of the geode specified in the .osg
> file. Does anyone know why this is happening? Any help would be
> greatly appreciated.
>   
I seem to recall that the picking results actually contain the drawables
intersected, not the parent nodes of those drawables.
So depending on how you process the picking results, node->getName()
might actually call getName() on a drawable.

Paul

Gmane