summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-02 15:51:41 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-02 15:51:41 -0300
commitb0b1da69505fe4d9fa3af3e232ffff726f6c055e (patch)
tree902e5d7c25b0bcc30b4b18088bb9701f2c55932f /tools/editor
parentbe73e2d2f272d08e68a3eb82346c1ac1dcd99dcd (diff)
Make buttons properly obey stylebox content marins, closes #2156
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/code_editor.cpp1
-rw-r--r--tools/editor/plugins/path_2d_editor_plugin.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/code_editor.cpp b/tools/editor/code_editor.cpp
index 59167abc22..fe863bfebc 100644
--- a/tools/editor/code_editor.cpp
+++ b/tools/editor/code_editor.cpp
@@ -612,6 +612,7 @@ CodeTextEditor::CodeTextEditor() {
if (!font_overrode)
text_editor->add_font_override("font",get_font("source","Fonts"));
+
text_editor->set_show_line_numbers(true);
text_editor->set_brace_matching(true);
text_editor->set_auto_indent(true);
diff --git a/tools/editor/plugins/path_2d_editor_plugin.cpp b/tools/editor/plugins/path_2d_editor_plugin.cpp
index 95c74b1676..509edbe5f8 100644
--- a/tools/editor/plugins/path_2d_editor_plugin.cpp
+++ b/tools/editor/plugins/path_2d_editor_plugin.cpp
@@ -534,6 +534,7 @@ void Path2DEditor::edit(Node *p_path2d) {
if (!node->is_connected("visibility_changed", this, "_node_visibility_changed"))
node->connect("visibility_changed", this, "_node_visibility_changed");
+
} else {
if (canvas_item_editor->get_viewport_control()->is_connected("draw",this,"_canvas_draw"))