Ver código fonte

Fix error spam on quit

jfons 4 anos atrás
pai
commit
6747126c14
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      editor/plugins/node_3d_editor_plugin.cpp

+ 1 - 1
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) {
 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();
 	}
 	}