Support for stateset in groups for OBJ.

This commit is contained in:
Émilien Tlapale
2016-12-13 10:57:42 +01:00
parent d6c245a2f3
commit f16853c7bb

View File

@@ -69,6 +69,7 @@ class OBJWriterNodeVisitor: public osg::NodeVisitor {
virtual void apply(osg::Group &node)
{
pushStateSet(node.getStateSet());
_nameStack.push_back( node.getName().empty() ? node.className() : node.getName() );
_fout << std::endl;
@@ -77,6 +78,7 @@ class OBJWriterNodeVisitor: public osg::NodeVisitor {
traverse( node );
_nameStack.pop_back();
popStateSet(node.getStateSet());
}
void traverse (osg::Node &node)