Merge pull request #49819 from nekomatata/fix-process-mode-inherit

This commit is contained in:
Rémi Verschelde 2021-09-17 19:16:19 +02:00 committed by GitHub
commit 583eaa9869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View file

@ -1322,6 +1322,7 @@ SceneTree::SceneTree() {
// Create with mainloop.
root = memnew(Window);
root->set_process_mode(Node::PROCESS_MODE_PAUSABLE);
root->set_name("root");
#ifndef _3D_DISABLED
if (!root->get_world_3d().is_valid()) {