瀏覽代碼

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

Pāvels Nadtočajevs 6 月之前
父節點
當前提交
6d698cf185
共有 1 個文件被更改,包括 3 次插入0 次删除
  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");