summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authormujpao <mujpao@gmail.com>2021-03-12 17:22:46 -0800
committermujpao <mujpao@gmail.com>2021-03-12 17:22:46 -0800
commit030703dd30958afe9d417b26d1e325f7396531e1 (patch)
tree759fc87945f3797db0af6498efddcea789f0707e /editor
parentbf309b8a139732387229228f86939516c7dc64d4 (diff)
downloadredot-engine-030703dd30958afe9d417b26d1e325f7396531e1.tar.gz
Update viewport after Polygon2D deselected
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 876b67fa77..c90f87de56 100644
--- a/editor/plugins/abstract_polygon_2d_editor.cpp
+++ b/editor/plugins/abstract_polygon_2d_editor.cpp
@@ -585,11 +585,11 @@ void AbstractPolygon2DEditor::edit(Node *p_polygon) {
edited_point = PosVertex();
hover_point = Vertex();
selected_point = Vertex();
-
- canvas_item_editor->update_viewport();
} else {
_set_node(nullptr);
}
+
+ canvas_item_editor->update_viewport();
}
void AbstractPolygon2DEditor::_bind_methods() {