Przeglądaj źródła

Fix "emulate mouse from touch" setting affecting editor

Make "emulate mouse from touch" always true in the editor
obo 11 miesięcy temu
rodzic
commit
4ef07cb9a5
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      main/main.cpp

+ 4 - 0
main/main.cpp

@@ -3191,6 +3191,10 @@ Error Main::setup2(bool p_show_boot_logo) {
 			}
 
 			id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_mouse_from_touch", true)));
+
+			if (editor) {
+				id->set_emulate_mouse_from_touch(true);
+			}
 		}
 
 		OS::get_singleton()->benchmark_end_measure("Startup", "Setup Window and Boot");