mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 10:22:54 +08:00
Fix scale clamps undoing the intended 5% scaling minimum
This commit is contained in:
parent
57227b5aab
commit
f616c7b752
@ -208,7 +208,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
|||||||
if (!scaleHandler.OriginalSurroundingQuad.HasValue)
|
if (!scaleHandler.OriginalSurroundingQuad.HasValue)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const float min_scale = 0.5f;
|
const float min_scale = 0.05f;
|
||||||
const float max_scale = 10;
|
const float max_scale = 10;
|
||||||
|
|
||||||
var scale = scaleHandler.ClampScaleToPlayfieldBounds(new Vector2(max_scale), getOriginPosition(scaleInfo.Value), getAdjustAxis(scaleInfo.Value), getRotation(scaleInfo.Value));
|
var scale = scaleHandler.ClampScaleToPlayfieldBounds(new Vector2(max_scale), getOriginPosition(scaleInfo.Value), getAdjustAxis(scaleInfo.Value), getRotation(scaleInfo.Value));
|
||||||
|
Loading…
Reference in New Issue
Block a user