You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Move cursor shape loading after module loading
fixes #46685
(cherry picked from commit 2ac9f37b17)
This commit is contained in:
committed by
Rémi Verschelde
parent
17bb7c6735
commit
36bec6677e
@@ -1423,6 +1423,19 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
|||||||
|
|
||||||
register_scene_types();
|
register_scene_types();
|
||||||
|
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
|
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
||||||
|
EditorNode::register_editor_types();
|
||||||
|
|
||||||
|
ClassDB::set_current_api(ClassDB::API_CORE);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
MAIN_PRINT("Main: Load Modules, Physics, Drivers, Scripts");
|
||||||
|
|
||||||
|
register_platform_apis();
|
||||||
|
register_module_types();
|
||||||
|
|
||||||
GLOBAL_DEF("display/mouse_cursor/custom_image", String());
|
GLOBAL_DEF("display/mouse_cursor/custom_image", String());
|
||||||
GLOBAL_DEF("display/mouse_cursor/custom_image_hotspot", Vector2());
|
GLOBAL_DEF("display/mouse_cursor/custom_image_hotspot", Vector2());
|
||||||
GLOBAL_DEF("display/mouse_cursor/tooltip_position_offset", Point2(10, 10));
|
GLOBAL_DEF("display/mouse_cursor/tooltip_position_offset", Point2(10, 10));
|
||||||
@@ -1436,18 +1449,6 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
|||||||
Input::get_singleton()->set_custom_mouse_cursor(cursor, Input::CURSOR_ARROW, hotspot);
|
Input::get_singleton()->set_custom_mouse_cursor(cursor, Input::CURSOR_ARROW, hotspot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef TOOLS_ENABLED
|
|
||||||
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
|
||||||
EditorNode::register_editor_types();
|
|
||||||
|
|
||||||
ClassDB::set_current_api(ClassDB::API_CORE);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
MAIN_PRINT("Main: Load Modules, Physics, Drivers, Scripts");
|
|
||||||
|
|
||||||
register_platform_apis();
|
|
||||||
register_module_types();
|
|
||||||
|
|
||||||
camera_server = CameraServer::create();
|
camera_server = CameraServer::create();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user