summaryrefslogtreecommitdiffstats
path: root/core/object/undo_redo.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-09-24 15:47:55 +0200
committerkobewi <kobewi4e@gmail.com>2024-09-24 15:47:55 +0200
commit7aef30c2a80f8fac30487f180f89743a3f41bcc0 (patch)
treecd3896d8c8be1dc44e4c52b2d29543f1cb930742 /core/object/undo_redo.h
parentc3e16cda00a9fbec4515142f4c59bc5134f1bfb0 (diff)
downloadredot-engine-7aef30c2a80f8fac30487f180f89743a3f41bcc0.tar.gz
Discard additional redo on commiting actions
Diffstat (limited to 'core/object/undo_redo.h')
-rw-r--r--core/object/undo_redo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object/undo_redo.h b/core/object/undo_redo.h
index 19d178635c..ded962670c 100644
--- a/core/object/undo_redo.h
+++ b/core/object/undo_redo.h
@@ -129,6 +129,7 @@ public:
int get_current_action();
String get_action_name(int p_id);
void clear_history(bool p_increase_version = true);
+ void discard_redo();
bool has_undo() const;
bool has_redo() const;