mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Prevent off-screen controls in editor
(cherry picked from commit 55b50703d7)
This commit is contained in:
parent
87a9d2c87e
commit
88d446f6c6
1 changed files with 4 additions and 0 deletions
|
|
@ -1408,6 +1408,10 @@ SceneTree::SceneTree() {
|
|||
root->set_name("root");
|
||||
root->set_title(GLOBAL_GET("application/config/name"));
|
||||
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
root->set_wrap_controls(true);
|
||||
}
|
||||
|
||||
#ifndef _3D_DISABLED
|
||||
if (!root->get_world_3d().is_valid()) {
|
||||
root->set_world_3d(Ref<World3D>(memnew(World3D)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue