mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Use correct value for undo in PropertyChangeCommand
This commit is contained in:
parent
6dccccb607
commit
2175f77831
@ -23,7 +23,7 @@ namespace osu.Game.Screens.Edit.Commands
|
||||
|
||||
public void Apply() => WriteValue(Target, Value);
|
||||
|
||||
public IEditorCommand CreateUndo() => CreateInstance(Target, Value);
|
||||
public IEditorCommand CreateUndo() => CreateInstance(Target, ReadValue(Target));
|
||||
|
||||
public IMergeableCommand? MergeWith(IEditorCommand previous)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user