Merge pull request #52867 from JFonS/upd_giz_fix

Fix error spam on quit
This commit is contained in:
Rémi Verschelde 2021-09-20 13:53:13 +02:00 committed by GitHub
commit b5380f9f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4820,7 +4820,7 @@ void _update_all_gizmos(Node *p_node) {
} }
void Node3DEditor::update_all_gizmos(Node *p_node) { void Node3DEditor::update_all_gizmos(Node *p_node) {
if (!p_node && get_tree()) { if (!p_node && is_inside_tree()) {
p_node = get_tree()->get_edited_scene_root(); p_node = get_tree()->get_edited_scene_root();
} }