mirror of
https://github.com/ppy/osu
synced 2025-01-03 12:52:10 +00: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.
|
||||
var scaledDelta = new Vector2(
|
||||
adjustedRect.Width / selectionRect.Width,
|
||||
adjustedRect.Height / selectionRect.Height
|
||||
MathF.Max(adjustedRect.Width / selectionRect.Width, 0),
|
||||
MathF.Max(adjustedRect.Height / selectionRect.Height, 0)
|
||||
);
|
||||
|
||||
foreach (var b in SelectedBlueprints)
|
||||
|
Loading…
Reference in New Issue
Block a user