From 64a8fe6ad7bafdfa527c1d7da535d8febc04af9f Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Fri, 18 Mar 2016 12:49:18 +0000 Subject: [PATCH] Option to toggle tab drawing (cherry picked from commit 0fc7be89d3d85e35a42e4b33f619f53c92694a76) --- tools/editor/editor_settings.cpp | 1 + tools/editor/plugins/script_editor_plugin.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp index a2dd032f8ea..9c8cc443f99 100644 --- a/tools/editor/editor_settings.cpp +++ b/tools/editor/editor_settings.cpp @@ -488,6 +488,7 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { set("text_editor/tab_size", 4); hints["text_editor/tab_size"]=PropertyInfo(Variant::INT,"text_editor/tab_size",PROPERTY_HINT_RANGE,"1, 64, 1"); // size of 0 crashes. + set("text_editor/draw_tabs", true); set("text_editor/idle_parse_delay",2); set("text_editor/create_signal_callbacks",true); diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 7fe0e6e9de2..376ba5274a0 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -581,7 +581,6 @@ void ScriptTextEditor::_bind_methods() { ScriptTextEditor::ScriptTextEditor() { - get_text_edit()->set_draw_tabs(true); } /*** SCRIPT EDITOR ******/ @@ -1931,6 +1930,7 @@ void ScriptEditor::edit(const Ref