Merge pull request #74858 from dalexeev/fix-input-event-dialog

Fix `InputEventConfigurationDialog` modifies original event
This commit is contained in:
Yuri Sizov 2023-03-15 13:32:17 +01:00 committed by GitHub
commit f2eb40d8a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>());