Merge pull request #46955 from mujpao/polygon2d-update-viewport

Update viewport after Polygon2D deselected
This commit is contained in:
Rémi Verschelde 2021-03-13 14:42:20 +01:00 committed by GitHub
commit c4f32bced9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {