Merge pull request #47519 from AndreaCatania/AndreaCatania-patch-4

Fixes editor crash on closing
This commit is contained in:
Rémi Verschelde 2021-03-31 12:47:25 +02:00 committed by GitHub
commit 6b25c94bd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -4577,7 +4577,12 @@ void _update_all_gizmos(Node *p_node) {
void Node3DEditor::update_all_gizmos(Node *p_node) {
if (!p_node) {
if (SceneTree::get_singleton()) {
p_node = SceneTree::get_singleton()->get_root();
} else {
// No scene tree, so nothing to update.
return;
}
}
_update_all_gizmos(p_node);
}