also if you put comment attributes it will not be removed on optimize Nick
On Wed, Feb 5, 2014 at 12:54 AM, Farshid Lashkari <[email protected]> wrote: > 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. <[email protected]>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 >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- trajce nikolov nick
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

