Remove duplicate editor settings definitions

This commit is contained in:
Haoyu Qiu 2022-04-27 15:26:46 +08:00
parent ad76e071fa
commit d088128b43
20 changed files with 50 additions and 52 deletions

View file

@ -506,10 +506,10 @@ String CSharpLanguage::make_function(const String &, const String &, const PoolS
String CSharpLanguage::_get_indentation() const {
#ifdef TOOLS_ENABLED
if (Engine::get_singleton()->is_editor_hint()) {
bool use_space_indentation = EDITOR_DEF("text_editor/indent/type", 0);
bool use_space_indentation = EDITOR_GET("text_editor/indent/type");
if (use_space_indentation) {
int indent_size = EDITOR_DEF("text_editor/indent/size", 4);
int indent_size = EDITOR_GET("text_editor/indent/size");
String space_indent = "";
for (int i = 0; i < indent_size; i++) {