diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index 7b2d851c5877..c7bd0613a91e 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -58,8 +58,6 @@ Node2D *Polygon2DEditor::_get_node() const { } void Polygon2DEditor::_set_node(Node *p_polygon) { - CanvasItem *draw = Object::cast_to(uv_edit_draw); - node = Object::cast_to(p_polygon); _update_polygon_editing_state(); uv_edit_draw->queue_redraw();