summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-16 23:16:53 +0100
committerGitHub <noreply@github.com>2019-02-16 23:16:53 +0100
commit6201159a4787dc084e0a136648094625b1d160ca (patch)
tree066ac2bc3a1e19797f9cab19f9c2377739b34c23 /editor
parent4f6dd779a37b7bf2643527be1fe261f12856a110 (diff)
parent637f41e83375abd8bdb1c31a23289c0d51d157b8 (diff)
Merge pull request #25958 from YeldhamDev/poly2d_edit_disable_fix
Fix Polygon2D Editor interacting with its buttons too soon
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/abstract_polygon_2d_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/abstract_polygon_2d_editor.cpp b/editor/plugins/abstract_polygon_2d_editor.cpp
index 82cd9e84dd..5a62f0da4e 100644
--- a/editor/plugins/abstract_polygon_2d_editor.cpp
+++ b/editor/plugins/abstract_polygon_2d_editor.cpp
@@ -201,6 +201,8 @@ void AbstractPolygon2DEditor::_notification(int p_what) {
case NOTIFICATION_READY: {
+ disable_polygon_editing(false, String());
+
button_create->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveCreate", "EditorIcons"));
button_edit->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveEdit", "EditorIcons"));
button_delete->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveDelete", "EditorIcons"));
@@ -797,8 +799,6 @@ AbstractPolygon2DEditor::AbstractPolygon2DEditor(EditorNode *p_editor, bool p_wi
selected_point = Vertex();
edge_point = PosVertex();
- disable_polygon_editing(false, String());
-
add_child(memnew(VSeparator));
button_create = memnew(ToolButton);
add_child(button_create);