void PrepareForOptimizationVisitor::apply(osg::Node& node) { node.setUserData(0); node.setUserDataContainer(0); node.setName(""); node.setDataVariance(osg::Object::STATIC); node.setCullCallback(0); node.setEventCallback(0); node.setUpdateCallback(0); traverse(node); }
virtual void apply(osg::Node& node) { node.setUpdateCallback(new UpdateCallback()); node.setCullCallback(new CullCallback()); traverse(node); }