Browse Source

[macOS] Fix editor loading crash on native menu click.

Pāvels Nadtočajevs 6 months ago
parent
commit
6d698cf185
1 changed files with 3 additions and 0 deletions
  1. 3 0
      editor/editor_node.cpp

+ 3 - 0
editor/editor_node.cpp

@@ -399,6 +399,9 @@ void EditorNode::_update_vsync_mode() {
 }
 }
 
 
 void EditorNode::_update_from_settings() {
 void EditorNode::_update_from_settings() {
+	if (!is_inside_tree()) {
+		return;
+	}
 	_update_title();
 	_update_title();
 
 
 	int current_filter = GLOBAL_GET("rendering/textures/canvas_textures/default_texture_filter");
 	int current_filter = GLOBAL_GET("rendering/textures/canvas_textures/default_texture_filter");