summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-12-29 15:48:59 -0600
committerDave Parks <davep@lindenlab.com>2010-12-29 15:48:59 -0600
commit6262c4a427422ea82bbdafd7e701b700784663a6 (patch)
treef5be218fd3da1475ed9f5034d0e1199df5596e96
parent5f99331f4a9ed5ed78af7b47bdad152949e63ec4 (diff)
SH-632 Fix for auto generating mesh LODs sometimes reducing High LOD triangle count.
-rwxr-xr-xindra/newview/llfloatermodelpreview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index 2f1ce25511..68b9e5d23d 100755
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -2879,6 +2879,13 @@ void LLModelPreview::genLODs(S32 which_lod, U32 decimation)
{
start = end = which_lod;
}
+ else
+ {
+ //SH-632 -- incremenet triangle count to avoid removing any triangles from
+ //highest LoD when auto-generating LoD
+ triangle_count++;
+ }
+
mMaxTriangleLimit = base_triangle_count;