summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-04-26 19:31:36 +0200
committerGitHub <noreply@github.com>2017-04-26 19:31:36 +0200
commit5993a5fac9a108297fc7909d1a38abac471d037d (patch)
treed6f83c45eeb68063d6d85eb9e7fae0d5914242e7 /editor/plugins/script_editor_plugin.cpp
parent4759be3c4bcd0964480a428b17a9680401d6d9b1 (diff)
parentc4ffe892043a558e293c5d3974c14beaabe038c4 (diff)
downloadredot-engine-5993a5fac9a108297fc7909d1a38abac471d037d.tar.gz
Merge pull request #8544 from Paulb23/indent_type_setting
Changed indent type settings
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index cdcc0a0855..972ef44c10 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -1649,7 +1649,7 @@ void ScriptEditor::_editor_settings_changed() {
trim_trailing_whitespace_on_save = EditorSettings::get_singleton()->get("text_editor/files/trim_trailing_whitespace_on_save");
convert_indent_on_save = EditorSettings::get_singleton()->get("text_editor/indent/convert_indent_on_save");
- use_space_indentation = EditorSettings::get_singleton()->get("text_editor/indent/type") == "Tabs" ? 0 : 1;
+ use_space_indentation = EditorSettings::get_singleton()->get("text_editor/indent/type");
float autosave_time = EditorSettings::get_singleton()->get("text_editor/files/autosave_interval_secs");
if (autosave_time > 0) {