[Bf-blender-cvs] [285a39f511f] refactor-mesh-position-generic: Fix array modifier
Hans Goudey
noreply at git.blender.org
Thu Sep 15 18:44:14 CEST 2022
Commit: 285a39f511f424b12394d3ffe5fa37fc38eb5163
Author: Hans Goudey
Date: Thu Sep 15 09:50:19 2022 -0500
Branches: refactor-mesh-position-generic
https://developer.blender.org/rB285a39f511f424b12394d3ffe5fa37fc38eb5163
Fix array modifier
===================================================================
M source/blender/modifiers/intern/MOD_array.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c
index 0db79bf3ab0..b6be7ef84f6 100644
--- a/source/blender/modifiers/intern/MOD_array.c
+++ b/source/blender/modifiers/intern/MOD_array.c
@@ -166,10 +166,10 @@ static void dm_mvert_map_doubles(int *doubles_map,
sorted_verts_source = MEM_malloc_arrayN(source_verts_num, sizeof(SortVertsElem), __func__);
/* Copy target vertices index and cos into SortVertsElem array */
- svert_from_mvert(sorted_verts_target, positions + target_start, target_start, target_end);
+ svert_from_mvert(sorted_verts_target, positions, target_start, target_end);
/* Copy source vertices index and cos into SortVertsElem array */
- svert_from_mvert(sorted_verts_source, positions + source_start, source_start, source_end);
+ svert_from_mvert(sorted_verts_source, positions, source_start, source_end);
/* sort arrays according to sum of vertex coordinates (sumco) */
qsort(sorted_verts_target, target_verts_num, sizeof(SortVertsElem), svert_sum_cmp);
@@ -425,7 +425,6 @@ static Mesh *arrayModifier_doArray(ArrayModifierData *amd,
/* Build up offset array, accumulating all settings options. */
unit_m4(offset);
- const float(*src_positions)[3] = BKE_mesh_positions(mesh);
const MEdge *src_edges = BKE_mesh_edges(mesh);
const MPoly *src_polys = BKE_mesh_polys(mesh);
const MLoop *src_loops = BKE_mesh_loops(mesh);
More information about the Bf-blender-cvs
mailing list