fix adding empty multi action to undo stack
This commit is contained in:
@@ -213,7 +213,9 @@ namespace FlaxEditor.Surface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Undo?.AddAction(new MultiUndoAction(undoActions, "Straightned "));
|
if (undoActions.Count > 0)
|
||||||
|
Undo?.AddAction(new MultiUndoAction(undoActions, "Straightned "));
|
||||||
|
|
||||||
MarkAsEdited(false);
|
MarkAsEdited(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user