Fix doctool crash and errors on macOS.

This commit is contained in:
Pāvels Nadtočajevs 2025-06-19 08:35:28 +03:00
parent 8de08c7c21
commit ec37e7e97f
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
2 changed files with 4 additions and 2 deletions

View file

@ -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 */