diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-01-15 15:43:55 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2019-01-15 15:43:55 -0300 |
commit | 96445cd90efc1fb24301fd1a85aea63c2c03cfec (patch) | |
tree | e3d0e46665a3e4dcf9ac89fd8e46f5bfdf830097 /editor/plugins | |
parent | ca03d7e0d724c5c34f4b688b22fbfa0451cb9555 (diff) |
Clear internal vertex counter when redrawing polygons, closes #24862.
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/polygon_2d_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<InputEvent> &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 { |