[Bf-blender-cvs] [b9727dae829] master: Cleanup: Remove redundant vertex duplication in extrude node

Hans Goudey noreply at git.blender.org
Thu Sep 8 16:55:31 CEST 2022


Commit: b9727dae829dcdfcf4df09dec91185608bcffdd0
Author: Hans Goudey
Date:   Thu Sep 8 09:50:28 2022 -0500
Branches: master
https://developer.blender.org/rBb9727dae829dcdfcf4df09dec91185608bcffdd0

Cleanup: Remove redundant vertex duplication in extrude node

Now this is done by `Mesh::verts_for_write()`

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc

===================================================================

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;



More information about the Bf-blender-cvs mailing list