summaryrefslogtreecommitdiff
path: root/indra/newview/llmodelpreview.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-09-03 21:15:00 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-09-03 21:15:00 +0300
commitbac30c9ba5fc9f947788b4fbb468d3259a20fc2e (patch)
tree4537b5fb33a0b5945d007eb4815485e8b198dfbc /indra/newview/llmodelpreview.cpp
parent3772249c2f1fd101e06c1be8c1601b58fd6f04ba (diff)
SL-15940 Limit wasn't adjusting for a model with less than 30 triangles
Diffstat (limited to 'indra/newview/llmodelpreview.cpp')
-rw-r--r--indra/newview/llmodelpreview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index e54045d811..bf661d39b2 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -2945,7 +2945,7 @@ void LLModelPreview::updateLodControls(S32 lod)
threshold->setVisible(false);
limit->setMaxValue(mMaxTriangleLimit);
- limit->setIncrement(mMaxTriangleLimit / 32);
+ limit->setIncrement(llmax((U32)1, mMaxTriangleLimit / 32));
}
else
{