diff options
author | Fredy Huya-Kouadio <fhuya@fb.com> | 2021-06-25 16:45:16 +0300 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2022-03-28 14:04:51 -0700 |
commit | 5711037bf6455ac8e7dc317975b7b0591decbb53 (patch) | |
tree | 066b0fbba287aeb4aa5bdbcd222c0cffa8d51ced /main | |
parent | 0c7a15d777073860603f7f36f0eed731ff745ada (diff) |
Android port of the Godot Editor
These set of changes focus primarily on getting the core logic and overall Godot Editor UI and functionality up and running natively on Android devices.
UI tweaks / cleanup / polish, as well configuration for Android specific functionality / restrictions will be addressed in follow-up PRs iteratively based on feedback.
Co-authored-by: thebestnom <shoval.arad@gmail.com>
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index f41fa136ba..c7a644d7b3 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2276,9 +2276,10 @@ bool Main::start() { bool embed_subwindows = GLOBAL_DEF("display/window/subwindows/embed_subwindows", true); - if (OS::get_singleton()->is_single_window() || (!project_manager && !editor && embed_subwindows)) { + if (OS::get_singleton()->is_single_window() || (!project_manager && !editor && embed_subwindows) || !DisplayServer::get_singleton()->has_feature(DisplayServer::Feature::FEATURE_SUBWINDOWS)) { sml->get_root()->set_embedding_subwindows(true); } + ResourceLoader::add_custom_loaders(); ResourceSaver::add_custom_savers(); |