Merge branch 'blender-v3.6-release'

This commit is contained in:
Hans Goudey
2023-06-12 07:56:15 -04:00

View File

@@ -121,6 +121,10 @@ static void expand_mesh(Mesh &mesh,
CustomData_realloc(&mesh.vdata, old_verts_num, mesh.totvert);
}
if (edge_expand != 0) {
if (mesh.totedge == 0) {
mesh.attributes_for_write().add(
".edge_verts", ATTR_DOMAIN_EDGE, CD_PROP_INT32_2D, bke::AttributeInitConstruct());
}
CustomData_free_layers(&mesh.edata, CD_FREESTYLE_EDGE, mesh.totedge);
const int old_edges_num = mesh.totedge;
mesh.totedge += edge_expand;