Fix to traversal of children of an LOD - based on a suggestion from Katharina Plugge.
This commit is contained in:
parent
5bb6fe2ee7
commit
f5e1d17c13
@ -230,7 +230,7 @@ FltExportVisitor::apply( osg::LOD& lodNode )
|
||||
writeComment( lodNode );
|
||||
|
||||
// Traverse each child of the LOD
|
||||
writePushTraverseWritePop( *lodChild );
|
||||
writePushTraverseChildWritePop( *lodChild );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user