From 96445cd90efc1fb24301fd1a85aea63c2c03cfec Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 15 Jan 2019 15:43:55 -0300 Subject: Clear internal vertex counter when redrawing polygons, closes #24862. --- editor/plugins/polygon_2d_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index 1ac7ee89d6..1d7b4ffa41 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -482,6 +482,7 @@ void Polygon2DEditor::_uv_input(const Ref &p_input) { polygons_prev = node->get_polygons(); node->set_polygon(points_prev); node->set_uv(points_prev); + node->set_internal_vertex_count(0); uv_edit_draw->update(); } else { -- cgit v1.2.3