From ec37e7e97fce67d91639dc679bc9d2632bb00f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Thu, 19 Jun 2025 08:35:28 +0300 Subject: [PATCH] Fix `doctool` crash and errors on macOS. --- editor/export/editor_export_platform_apple_embedded.cpp | 2 +- editor/script_create_dialog.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/editor/export/editor_export_platform_apple_embedded.cpp b/editor/export/editor_export_platform_apple_embedded.cpp index 9565fc6630f..ef8a924a2f6 100644 --- a/editor/export/editor_export_platform_apple_embedded.cpp +++ b/editor/export/editor_export_platform_apple_embedded.cpp @@ -2438,7 +2438,7 @@ void EditorExportPlatformAppleEmbedded::_check_for_changes_poll_thread(void *ud) // Enum real devices (via ios_deploy, pre Xcode 15). String ios_deploy_setting = "export/" + ea->get_platform_name() + "/ios_deploy"; - if (EditorSettings::get_singleton()->has_setting(ios_deploy_setting)) { + if (EditorSettings::get_singleton() && EditorSettings::get_singleton()->has_setting(ios_deploy_setting)) { String idepl = EDITOR_GET(ios_deploy_setting); if (ea->has_runnable_preset.is_set() && !idepl.is_empty()) { String devices_json; diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 8b4fc912368..00a0805bff9 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -847,7 +847,9 @@ void ScriptCreateDialog::_bind_methods() { } ScriptCreateDialog::ScriptCreateDialog() { - EDITOR_DEF("_script_setup_templates_dictionary", Dictionary()); + if (EditorSettings::get_singleton()) { + EDITOR_DEF("_script_setup_templates_dictionary", Dictionary()); + } /* Main Controls */