Hi Karl, Setting the data variance of a node to DYNAMIC should prevent the optimizer from removing it:
group->setDataVariance(osg::Object::DYNAMIC); Cheers, Farshid On Tue, Feb 4, 2014 at 1:49 PM, Cary, Karl A. <karl.a.c...@leidos.com>wrote: > Is there a way to save a named group from being optimized away by > setting either some type of option or flag before running the optimizer? I > can always write a custom optimize visitor to handle it, but it just seemed > like it might be a common case that is handled and I haven't known about. > Thanks. > > > > Karl > > > > _______________________________________________ > 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