Fixed problem with incorrect combining of some LOD's derived from flt databases.
Problem related to the order of the removal of redudent groups and LOD combining, the LOD combining only working properly if done first.
This commit is contained in:
@@ -18,6 +18,13 @@ using namespace osgUtil;
|
||||
void Optimizer::optimize(osg::Node* node, unsigned int options)
|
||||
{
|
||||
|
||||
if (options & COMBINE_ADJACENT_LODS)
|
||||
{
|
||||
CombineLODsVisitor clv;
|
||||
node->accept(clv);
|
||||
clv.combineLODs();
|
||||
}
|
||||
|
||||
if (options & FLATTEN_STATIC_TRANSFORMS)
|
||||
{
|
||||
FlattenStaticTransformsVisitor fstv;
|
||||
@@ -32,13 +39,6 @@ void Optimizer::optimize(osg::Node* node, unsigned int options)
|
||||
rrnv.removeRedundentNodes();
|
||||
}
|
||||
|
||||
if (options & COMBINE_ADJACENT_LODS)
|
||||
{
|
||||
CombineLODsVisitor clv;
|
||||
node->accept(clv);
|
||||
clv.combineLODs();
|
||||
}
|
||||
|
||||
if (options & SHARE_DUPLICATE_STATE)
|
||||
{
|
||||
#if !defined(WIN32) || defined(_STLPORT_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user