Fix editor not clearing undo history on skin change

This commit is contained in:
Bartłomiej Dach 2023-11-11 17:02:21 +09:00
parent 1c63f1f89d
commit 2428a97d44
No known key found for this signature in database

View File

@ -406,7 +406,14 @@ namespace osu.Game.Overlays.SkinEditor
cp.Colour = colours.Yellow;
});
changeHandler?.Dispose();
skins.EnsureMutableSkin();
var targetContainer = getTarget(selectedTarget.Value);
if (targetContainer != null)
changeHandler = new SkinEditorChangeHandler(targetContainer);
hasBegunMutating = true;
}