Cory,

You can't modify the hierarchy during an active traversal - this will mess
up the traversal. You need to cache your updates and perform them between
traversals.

Brian

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose. •
-----osg-users-boun...@lists.openscenegraph.org wrote: -----

To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org>
From: Cory Riddell <c...@codeware.com>
Sent by: osg-users-boun...@lists.openscenegraph.org
Date: 03/02/2009 02:45PM
Subject: [osg-users] modify children in node callback?

In general, is it ok to modify child nodes in a node callback method?
That is, children of the node for which the callback was called?

I assume it must be. If not, how do you add or remove nodes of a scene
graph while running?

Cory
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to