1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 15:27:24 +08:00

Merge pull request #26423 from B3nn1/undo_sliderpoint_curvetype_change

Fix changing slider path segment type not being undoable
This commit is contained in:
Bartłomiej Dach 2024-05-24 11:22:44 +02:00 committed by GitHub
commit 742108f88b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -435,10 +435,14 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
var item = new TernaryStateRadioMenuItem(type?.Description ?? "Inherit", MenuItemType.Standard, _ =>
{
changeHandler?.BeginChange();
foreach (var p in Pieces.Where(p => p.IsSelected.Value))
updatePathType(p, type);
EnsureValidPathTypes();
changeHandler?.EndChange();
});
if (countOfState == totalCount)