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

Fix adding slider control points via context menu not undoing correctly

Closes https://github.com/ppy/osu/issues/27985.
This commit is contained in:
Bartłomiej Dach 2024-04-25 09:01:47 +02:00
parent 6905257869
commit 94275f148e
No known key found for this signature in database

View File

@ -403,7 +403,12 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
public override MenuItem[] ContextMenuItems => new MenuItem[]
{
new OsuMenuItem("Add control point", MenuItemType.Standard, () => addControlPoint(rightClickPosition)),
new OsuMenuItem("Add control point", MenuItemType.Standard, () =>
{
changeHandler?.BeginChange();
addControlPoint(rightClickPosition);
changeHandler?.EndChange();
}),
new OsuMenuItem("Convert to stream", MenuItemType.Destructive, convertToStream),
};