diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-07 08:38:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 08:38:15 +0100 |
commit | 53cf5eff9afe8c8d31e5b528de88fd93496fc56c (patch) | |
tree | f86ee6a253be245bcbcb488e68d629e66d6c9ea4 /modules/gdscript | |
parent | 1177bd635f2776992dd23a6c53f0e21494d430b1 (diff) | |
parent | 2057ea2883ed1fdd3ebb07562f3a4ba370082e5c (diff) |
Merge pull request #58847 from KoBeWi/editor_settings_mess
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 6fb95d32ca..350962ba1b 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -65,7 +65,7 @@ Ref<Script> GDScriptLanguage::make_template(const String &p_template, const Stri script.instantiate(); String processed_template = p_template; #ifdef TOOLS_ENABLED - if (!EDITOR_DEF("text_editor/completion/add_type_hints", false)) { + if (!EDITOR_GET("text_editor/completion/add_type_hints")) { processed_template = processed_template.replace(": int", "") .replace(": String", "") .replace(": float", "") @@ -2771,10 +2771,10 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_path String GDScriptLanguage::_get_indentation() const { #ifdef TOOLS_ENABLED if (Engine::get_singleton()->is_editor_hint()) { - bool use_space_indentation = EDITOR_DEF("text_editor/behavior/indent/type", false); + bool use_space_indentation = EDITOR_GET("text_editor/behavior/indent/type"); if (use_space_indentation) { - int indent_size = EDITOR_DEF("text_editor/behavior/indent/size", 4); + int indent_size = EDITOR_GET("text_editor/behavior/indent/size"); String space_indent = ""; for (int i = 0; i < indent_size; i++) { |