diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-03-13 15:03:35 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-03-13 15:03:35 +0300 |
commit | 9fbf24fd5c32f50130ae71e317ad73456853d3b5 (patch) | |
tree | 7ae455ef08eada7d15d07890b83d2892d464970d /editor/input_event_configuration_dialog.cpp | |
parent | 550a7798510810d238b733a54f69da71b2a2d152 (diff) | |
download | redot-engine-9fbf24fd5c32f50130ae71e317ad73456853d3b5.tar.gz |
Fix `InputEventConfigurationDialog` modifies original event
Diffstat (limited to 'editor/input_event_configuration_dialog.cpp')
-rw-r--r-- | editor/input_event_configuration_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/input_event_configuration_dialog.cpp b/editor/input_event_configuration_dialog.cpp index c620858439..c2b8992b69 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<InputEvent> &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<InputEvent>(), Ref<InputEvent>()); |