SL-15940 Limit wasn't adjusting for a model with less than 30 triangles

meow-7.2.2
Andrey Kleshchev 2021-09-03 21:15:00 +03:00
parent 3772249c2f
commit bac30c9ba5
1 changed files with 1 additions and 1 deletions

View File

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