I've got a strange problem.

After loading in model from openflight, I am trying to replace the
stateset of some of the nodes.

So the code looks like:

loop
{
osg::StateSet *ss = new osg::StateSet;
// do some stuff to it
node->setStateSet(ss);
}
If the node already had a stateset, particularly a shared stateset, is
there anything wrong with this?

If I look at the nodes, some of them have the new statesets, and some of
them don't. (I can tell by the settings).

Do I need to do something to clean up the node if it already had a
shared stateset?

Thanks,

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

Reply via email to