Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-08 17:50:28 +0300
committerHans Goudey <h.goudey@me.com>2022-09-08 17:50:59 +0300
commitb9727dae829dcdfcf4df09dec91185608bcffdd0 (patch)
treedb00455509ba0b64625d0586116e70f4535a4eea
parent59f6c60fb60ecd143d5e5984a4e7883d91766007 (diff)
Cleanup: Remove redundant vertex duplication in extrude node
Now this is done by `Mesh::verts_for_write()`
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc4
1 files changed, 0 insertions, 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;