Cristina wrote on Tuesday, April 21, 2009 1:47 PM: > After I loaded an flt file, I invoke a visitor which traverses the whole > scene graph and finds all the nodes that have textures attached to them. For > each node that have a texture attached, it loads a new texture and tries to > insert 2 extra nodes above the current node. This will crash the application > when traverse(node) is called. Is it possible to modify the scene graph while > traversing it?
It is not possible to insert nodes above the current node because you invalidate the iterators that are processing the lists of node children. To do what you are attempting, you could push the nodes onto a list and then modify the scenegraph after the traversal is finished. -- Bryan Thrall FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

