Hi Christof
Robert prefer search the RenderBin instance that you want to remove instead
of search the name of a render bin.
like this :
void RenderBin::removeRenderBinPrototype(RenderBin* proto)
{
RenderBinPrototypeList* list = renderBinPrototypeList();
if (list && proto)
{
for(RenderBinPrototypeList::iterator itr = list->begin();
itr != list->end();
++itr)
{
if (itr->second.get() == proto)
{
list->erase(itr);
return;
}
}
}
}
Can you test this solution ?
David
2009/3/13 Christof Krüger <[email protected]>
> Changing the removeRenderBinPrototype to use the binName instead of the
> classname fixes the crash. For this, you need to also add a member string
> variable to the Proxy object in order to remember the binName.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=8445#8445
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org