From 9fbf24fd5c32f50130ae71e317ad73456853d3b5 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Mon, 13 Mar 2023 15:03:35 +0300 Subject: [PATCH] Fix `InputEventConfigurationDialog` modifies original event --- editor/input_event_configuration_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/input_event_configuration_dialog.cpp b/editor/input_event_configuration_dialog.cpp index c6208584396..c2b8992b697 100644 --- a/editor/input_event_configuration_dialog.cpp +++ b/editor/input_event_configuration_dialog.cpp @@ -547,7 +547,7 @@ void InputEventConfigurationDialog::_notification(int p_what) { void InputEventConfigurationDialog::popup_and_configure(const Ref &p_event) { if (p_event.is_valid()) { - _set_event(p_event, p_event->duplicate()); + _set_event(p_event->duplicate(), p_event); } else { // Clear Event _set_event(Ref(), Ref());