Skip to content

Commit

Permalink
Fix InputEventConfigurationDialog modifies original event
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexeev committed Mar 13, 2023
1 parent 550a779 commit 9fbf24f
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 9fbf24f

Please sign in to comment.