mirror of
https://github.com/ppy/osu
synced 2025-03-19 09:34:49 +00:00
Fix editor not clearing undo history on skin change
This commit is contained in:
parent
1c63f1f89d
commit
2428a97d44
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user