summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-20 13:53:13 +0200
committerGitHub <noreply@github.com>2021-09-20 13:53:13 +0200
commitb5380f9f59a8d22f3153be9453ca781b6d58e8e1 (patch)
treee786e3973cd9f29a6418574dba50e11ea4470b09 /editor/plugins
parent65e91798a5245618d89833c643c0fad7e5a04ad0 (diff)
parent6747126c14190191307feadad4782480cff441b2 (diff)
Merge pull request #52867 from JFonS/upd_giz_fix
Fix error spam on quit
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
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();
}