mirror of https://github.com/ppy/osu
Merge pull request #26423 from B3nn1/undo_sliderpoint_curvetype_change
Fix changing slider path segment type not being undoable
This commit is contained in:
commit
742108f88b
|
@ -435,10 +435,14 @@ private MenuItem createMenuItemForPathType(PathType? type)
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue