mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 01:45:38 +00:00
FIX(CSVRender::Object): Clamp scale edits in render window too
This commit is contained in:
parent
50465a3cf2
commit
daf82d40b9
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ void CSVRender::Object::setScale(float scale)
|
|||
{
|
||||
mOverrideFlags |= Override_Scale;
|
||||
|
||||
mScaleOverride = scale;
|
||||
mScaleOverride = std::clamp(scale, 0.5f, 2.0f);
|
||||
|
||||
adjustTransform();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue