From b9727dae829dcdfcf4df09dec91185608bcffdd0 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 8 Sep 2022 09:50:28 -0500 Subject: [PATCH] Cleanup: Remove redundant vertex duplication in extrude node Now this is done by `Mesh::verts_for_write()` --- source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc b/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc index 9224e9d55f3..64779494e3e 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc @@ -98,10 +98,6 @@ static void expand_mesh(Mesh &mesh, mesh.totvert += vert_expand; CustomData_realloc(&mesh.vdata, mesh.totvert); } - else { - /* Even when the number of vertices is not changed, the mesh can still be deformed. */ - CustomData_duplicate_referenced_layer(&mesh.vdata, CD_MVERT, mesh.totvert); - } if (edge_expand != 0) { CustomData_duplicate_referenced_layers(&mesh.edata, mesh.totedge); mesh.totedge += edge_expand;