Skip to content

Commit

Permalink
Merge pull request #74858 from dalexeev/fix-input-event-dialog
Browse files Browse the repository at this point in the history
Fix `InputEventConfigurationDialog` modifies original event
  • Loading branch information
YuriSizov authored Mar 15, 2023
2 parents 2e509f4 + 9fbf24f commit f2eb40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/input_event_configuration_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>());
Expand Down

0 comments on commit f2eb40d

Please sign in to comment.