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 /editor | |
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 'editor')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 92ab20b999..57998b7778 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -635,6 +635,9 @@ void EditorNode::_notification(int p_what) { get_tree()->get_root()->set_snap_2d_transforms_to_pixel(false); get_tree()->get_root()->set_snap_2d_vertices_to_pixel(false); get_tree()->set_auto_accept_quit(false); +#ifdef ANDROID_ENABLED + get_tree()->set_quit_on_go_back(false); +#endif get_tree()->get_root()->connect("files_dropped", callable_mp(this, &EditorNode::_dropped_files)); command_palette->register_shortcuts_as_command(); |