Robert Osfield wrote:
Hi David,

On Thu, Mar 12, 2009 at 10:46 AM, David Callu <[email protected]> wrote:
What about the case of register two prototype with the same name. There are
any warning message for the user.
I fix this like that

There is only ever supposed to be one prototype per binName, and the
std::map<binname,prototype> ensures this is the case.  If you attach
two different bins under the same binName then the first will be
replaced by the second one and the first one will automatically be
unref'd.
What was the use case for the bin names again? I mean, as there are already bin numbers that uniquely identify a bin are the names merely descriptive?

Regards,
Paul

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to