Browse Source

Clear internal vertex counter when redrawing polygons, closes #24862.

Juan Linietsky 6 years ago
parent
commit
96445cd90e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/plugins/polygon_2d_editor_plugin.cpp

+ 1 - 0
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();
 						polygons_prev = node->get_polygons();
 						node->set_polygon(points_prev);
 						node->set_polygon(points_prev);
 						node->set_uv(points_prev);
 						node->set_uv(points_prev);
+						node->set_internal_vertex_count(0);
 
 
 						uv_edit_draw->update();
 						uv_edit_draw->update();
 					} else {
 					} else {