SH-632 Fix for auto generating mesh LODs sometimes reducing High LOD triangle count.

meow-7.2.2
Dave Parks 2010-12-29 15:48:59 -06:00
parent 5f99331f4a
commit 6262c4a427
1 changed files with 7 additions and 0 deletions

View File

@ -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;