mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 12:23:13 +08:00
Merge pull request #13382 from ribbanya/clamp-skin-scale
Fix skin elements flipping when scaled below zero
This commit is contained in:
commit
6e31c781bb
@ -95,8 +95,8 @@ namespace osu.Game.Skinning.Editor
|
|||||||
|
|
||||||
// scale adjust applied to each individual item should match that of the quad itself.
|
// scale adjust applied to each individual item should match that of the quad itself.
|
||||||
var scaledDelta = new Vector2(
|
var scaledDelta = new Vector2(
|
||||||
adjustedRect.Width / selectionRect.Width,
|
MathF.Max(adjustedRect.Width / selectionRect.Width, 0),
|
||||||
adjustedRect.Height / selectionRect.Height
|
MathF.Max(adjustedRect.Height / selectionRect.Height, 0)
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach (var b in SelectedBlueprints)
|
foreach (var b in SelectedBlueprints)
|
||||||
|
Loading…
Reference in New Issue
Block a user