Fix to traversal of children of an LOD - based on a suggestion from Katharina Plugge.

This commit is contained in:
Robert Osfield 2008-11-10 13:48:36 +00:00
parent 5bb6fe2ee7
commit f5e1d17c13
2 changed files with 8 additions and 1 deletions

View File

@ -230,7 +230,7 @@ FltExportVisitor::apply( osg::LOD& lodNode )
writeComment( lodNode );
// Traverse each child of the LOD
writePushTraverseWritePop( *lodChild );
writePushTraverseChildWritePop( *lodChild );
}
}

View File

@ -121,6 +121,13 @@ public:
writePop();
}
void writePushTraverseChildWritePop(osg::Node& node)
{
writePush();
node.accept(*this);
writePop();
}
// Geometry records
void writeFace( const osg::Geode& geode, const osg::Geometry& geom, GLenum mode );
void writeMesh( const osg::Geode& geode, const osg::Geometry& geom );