mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +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:
commit
3793a552b8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user