diff options
| author | Dave Parks <davep@lindenlab.com> | 2010-12-29 15:48:59 -0600 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2010-12-29 15:48:59 -0600 | 
| commit | 6262c4a427422ea82bbdafd7e701b700784663a6 (patch) | |
| tree | f5be218fd3da1475ed9f5034d0e1199df5596e96 | |
| parent | 5f99331f4a9ed5ed78af7b47bdad152949e63ec4 (diff) | |
SH-632 Fix for auto generating mesh LODs sometimes reducing High LOD triangle count.
| -rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 7 | 
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;
 | 
