1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 12:42:54 +08:00

Fix newly placed items in skin editor not getting correct anchor placement

This commit is contained in:
Dean Herbert 2024-04-12 16:24:46 +08:00
parent da1a07fb45
commit c0dce94f15
No known key found for this signature in database

View File

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