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
1 changed files with 4 additions and 0 deletions

View File

@ -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)