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:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-06-09 13:17:00 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-06-09 13:19:44 +0300
commit8522b429b56838e343c5cbe8889dcbf792e23a38 (patch)
treef87760f246bcd04b448838f18a80eb06d5b3630e /source/blender/editors/transform/transform_convert_mesh.c
parent5620a09e0d5e929271c4faa2a763b647758072d8 (diff)
Transform: Fixes after recent refactor
Pointed by strict compiler warnings, but some of the reports were actually a real bugs: - Access uninitialized memory of td_mirror_iter. Assuming that iterator is to point to the first element of the data array. - Lattice's recalc data was never called. There is also a fix for redundant declaration of recalcData() and missing declaration of recalcData_lattice().
Diffstat (limited to 'source/blender/editors/transform/transform_convert_mesh.c')
-rw-r--r--source/blender/editors/transform/transform_convert_mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_convert_mesh.c b/source/blender/editors/transform/transform_convert_mesh.c
index 6bee3760f4d..710ddf60176 100644
--- a/source/blender/editors/transform/transform_convert_mesh.c
+++ b/source/blender/editors/transform/transform_convert_mesh.c
@@ -535,7 +535,7 @@ static TransDataMirror *editmesh_mirror_data_calc(BMEditMesh *em,
TransDataMirror *td_mirror_iter, *td_mirror = NULL;
if (mirror_elem_len != 0) {
td_mirror = MEM_mallocN(mirror_elem_len * sizeof(*td_mirror), __func__);
- td_mirror_iter = &td_mirror_iter[0];
+ td_mirror_iter = &td_mirror[0];
*r_mirror_bitmap = BLI_BITMAP_NEW(bm->totvert, __func__);