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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user