Cleanup: Remove legacy argument from mesh creation functions
The legacy `tessface_len` argument was only used for the explode modifier. Remove it and copy the legacy face data manually there.
This commit is contained in:
@@ -197,7 +197,7 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
|
||||
|
||||
/* now we know the number of verts, edges and faces, we can create the mesh. */
|
||||
result = BKE_mesh_new_nomain_from_template(
|
||||
mesh, BLI_ghash_len(vertHash), BLI_ghash_len(edgeHash), 0, loops_dst_num, faces_dst_num);
|
||||
mesh, BLI_ghash_len(vertHash), BLI_ghash_len(edgeHash), loops_dst_num, faces_dst_num);
|
||||
blender::MutableSpan<MEdge> result_edges = result->edges_for_write();
|
||||
blender::MutableSpan<MPoly> result_polys = result->polys_for_write();
|
||||
blender::MutableSpan<MLoop> result_loops = result->loops_for_write();
|
||||
|
||||
Reference in New Issue
Block a user