Browse Source

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

Pāvels Nadtočajevs 6 tháng trước cách đây
mục cha
commit
6d698cf185
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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() {
+	if (!is_inside_tree()) {
+		return;
+	}
 	_update_title();
 
 	int current_filter = GLOBAL_GET("rendering/textures/canvas_textures/default_texture_filter");