From 5737e7dd2dac03e04d1c17cb1f4afedc956b48e2 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Tue, 28 Dec 2021 17:08:06 +0000 Subject: Check if action name exists before adding it or renaming an action to it --- editor/action_map_editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/action_map_editor.h') diff --git a/editor/action_map_editor.h b/editor/action_map_editor.h index cf2d871469..e61d1a334a 100644 --- a/editor/action_map_editor.h +++ b/editor/action_map_editor.h @@ -168,6 +168,7 @@ private: void _event_config_confirmed(); void _add_action_pressed(); + bool _has_action(const String &p_name) const; void _add_action(const String &p_name); void _action_edited(); -- cgit v1.2.3