Skip to content

Commit

Permalink
Merge branch 'no-really-i-shouldnt-be-this-big' into 'master'
Browse files Browse the repository at this point in the history
FIX(CSVRender::Object): Clamp scale edits in render window too

See merge request OpenMW/openmw!4341
  • Loading branch information
Assumeru committed Aug 26, 2024
2 parents 070a72e + daf82d4 commit b55eead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/opencs/view/render/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ void CSVRender::Object::setScale(float scale)
{
mOverrideFlags |= Override_Scale;

mScaleOverride = scale;
mScaleOverride = std::clamp(scale, 0.5f, 2.0f);

adjustTransform();
}
Expand Down

0 comments on commit b55eead

Please sign in to comment.