You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/classes/EditorUndoRedoManager.xml
+15
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,21 @@
68
68
Register a reference for "undo" that will be erased if the "undo" history is lost. This is useful mostly for nodes removed with the "do" call (not the "undo" call!).
Clears the given undo history. You can clear history for a specific scene, global history, or for all scenes at once if [param id] is [constant INVALID_HISTORY].
77
+
If [param increase_version] is [code]true[/code], the undo history version will be increased, marking it as unsaved. Useful for operations that modify the scene, but don't support undo.
78
+
[codeblock]
79
+
var scene_root = EditorInterface.get_edited_scene_root()
80
+
var undo_redo = EditorInterface.get_editor_undo_redo()
0 commit comments