Skip to content

Commit

Permalink
Changed osg::NodeVisitor::traverse(node) to traverse(node) to take ad…
Browse files Browse the repository at this point in the history
…vantage of the local travese() implementation pushing/popping any StateSet that is on the node.
  • Loading branch information
robertosfield committed May 18, 2016
1 parent 8863e03 commit a0684bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/osgPlugins/obj/OBJWriterNodeVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit a0684bd

Please sign in to comment.