diff options
author | jfons <joan.fonssanchez@gmail.com> | 2021-09-20 13:10:19 +0200 |
---|---|---|
committer | jfons <joan.fonssanchez@gmail.com> | 2021-09-20 13:10:19 +0200 |
commit | 6747126c14190191307feadad4782480cff441b2 (patch) | |
tree | 82360611efb6aed330b492bbe02beb81249ba68d | |
parent | e154820935fbbb20615148f05ad2d29963aedddc (diff) |
Fix error spam on quit
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 5263352502..cf451dce91 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -4820,7 +4820,7 @@ void _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(); } |