Browse Source

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

Fix `InputEventConfigurationDialog` modifies original event
Yuri Sizov 2 năm trước cách đây
mục cha
commit
f2eb40d8a4

+ 1 - 1
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) {
 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>());