1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 03:59:56 +00:00

Merge branch 'no-really-i-shouldnt-be-this-big' into 'master'

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

See merge request OpenMW/openmw!4341
This commit is contained in:
Evil Eye 2024-08-26 19:51:19 +00:00
commit b55eead51b

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();
}