Changed osg::NodeVisitor::traverse(node) to traverse(node) to take advantage of the local travese() implementation pushing/popping any StateSet that is on the node.

This commit is contained in:
Robert Osfield
2016-05-18 18:30:51 +01:00
parent 8863e03685
commit a0684bd058

View File

@@ -70,10 +70,12 @@ class OBJWriterNodeVisitor: public osg::NodeVisitor {
virtual void apply(osg::Group &node)
{
_nameStack.push_back( node.getName().empty() ? node.className() : node.getName() );
_fout << std::endl;
_fout << "g " << getUniqueName() << std::endl;
osg::NodeVisitor::traverse( node );
traverse( node );
_nameStack.pop_back();
}