Fix `InputEventConfigurationDialog` modifies original event

This commit is contained in:
Danil Alexeev 2023-03-13 15:03:35 +03:00
parent 550a779851
commit 9fbf24fd5c
No known key found for this signature in database
GPG Key ID: 124453E157DA8DC7
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ void InputEventConfigurationDialog::_notification(int p_what) {
void InputEventConfigurationDialog::popup_and_configure(const Ref<InputEvent> &p_event) { void InputEventConfigurationDialog::popup_and_configure(const Ref<InputEvent> &p_event) {
if (p_event.is_valid()) { if (p_event.is_valid()) {
_set_event(p_event, p_event->duplicate()); _set_event(p_event->duplicate(), p_event);
} else { } else {
// Clear Event // Clear Event
_set_event(Ref<InputEvent>(), Ref<InputEvent>()); _set_event(Ref<InputEvent>(), Ref<InputEvent>());