فهرست منبع

Fix "emulate mouse from touch" setting affecting editor

Make "emulate mouse from touch" always true in the editor
obo 11 ماه پیش
والد
کامیت
4ef07cb9a5
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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");