1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Merge pull request #27832 from peppy/skin-editor-new-items-apply

Fix newly placed items in skin editor not getting correct anchor placement
This commit is contained in:
Dan Balasescu 2024-04-12 21:00:52 +09:00 committed by GitHub
commit 3793a552b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -454,6 +454,7 @@ namespace osu.Game.Overlays.SkinEditor
}
SelectedComponents.Add(component);
SkinSelectionHandler.ApplyClosestAnchor(drawableComponent);
return true;
}
@ -666,8 +667,6 @@ namespace osu.Game.Overlays.SkinEditor
SelectedComponents.Clear();
placeComponent(sprite, false);
SkinSelectionHandler.ApplyClosestAnchor(sprite);
});
return Task.CompletedTask;