diff --git a/editor/plugins/sprite_editor_plugin.cpp b/editor/plugins/sprite_editor_plugin.cpp index 77ad89a22b9..99aabcb3ebf 100644 --- a/editor/plugins/sprite_editor_plugin.cpp +++ b/editor/plugins/sprite_editor_plugin.cpp @@ -130,6 +130,7 @@ void SpriteEditor::_update_mesh_data() { uv_lines.clear(); computed_vertices.clear(); + computed_uv.clear(); computed_indices.clear(); Size2 img_size = Vector2(image->get_width(), image->get_height());