소스 검색

Fix `InputEventConfigurationDialog` modifies original event

Danil Alexeev 2 년 전
부모
커밋
9fbf24fd5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/input_event_configuration_dialog.cpp

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