Browse Source

Fix "emulate mouse from touch" setting affecting editor

Make "emulate mouse from touch" always true in the editor
obo 11 tháng trước cách đây
mục cha
commit
4ef07cb9a5
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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)));
 			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");
 		OS::get_singleton()->benchmark_end_measure("Startup", "Setup Window and Boot");