aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/path_2d_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-01-02 15:51:41 -0300
committerJuan Linietsky2016-01-02 15:51:41 -0300
commitb0b1da69505fe4d9fa3af3e232ffff726f6c055e (patch)
tree902e5d7c25b0bcc30b4b18088bb9701f2c55932f /tools/editor/plugins/path_2d_editor_plugin.cpp
parentbe73e2d2f272d08e68a3eb82346c1ac1dcd99dcd (diff)
downloadgodot-b0b1da69505fe4d9fa3af3e232ffff726f6c055e.tar.gz
godot-b0b1da69505fe4d9fa3af3e232ffff726f6c055e.tar.zst
godot-b0b1da69505fe4d9fa3af3e232ffff726f6c055e.zip
Make buttons properly obey stylebox content marins, closes #2156
Diffstat (limited to 'tools/editor/plugins/path_2d_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/path_2d_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/plugins/path_2d_editor_plugin.cpp b/tools/editor/plugins/path_2d_editor_plugin.cpp
index 95c74b167..509edbe5f 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"))