1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-27 06:14:09 +00:00

FIX(CSVRender::Object): Clamp scale edits in render window too

This commit is contained in:
Dave Corley 2024-08-25 10:23:04 -07:00
parent 50465a3cf2
commit daf82d40b9

View File

@ -713,7 +713,7 @@ void CSVRender::Object::setScale(float scale)
{
mOverrideFlags |= Override_Scale;
mScaleOverride = scale;
mScaleOverride = std::clamp(scale, 0.5f, 2.0f);
adjustTransform();
}