Browse Source

Merge pull request #103892 from bruvzg/mac_menu_crash

[macOS] Fix editor loading crash on native menu click.
Thaddeus Crews 5 months ago
parent
commit
596a796e99
1 changed files with 3 additions and 0 deletions
  1. 3 0
      editor/editor_node.cpp

+ 3 - 0
editor/editor_node.cpp

@@ -402,6 +402,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");