1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Make default/project theme wait for modules before initializing

This commit is contained in:
Yuri Sizov
2021-11-30 18:59:32 +03:00
parent 6cf77f80b5
commit 33fb44223f
3 changed files with 7 additions and 0 deletions

View File

@@ -1485,6 +1485,9 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
register_platform_apis();
register_module_types();
// Theme needs modules to be initialized so that sub-resources can be loaded.
initialize_theme();
GLOBAL_DEF("display/mouse_cursor/custom_image", String());
GLOBAL_DEF("display/mouse_cursor/custom_image_hotspot", Vector2());
GLOBAL_DEF("display/mouse_cursor/tooltip_position_offset", Point2(10, 10));