From 8522b429b56838e343c5cbe8889dcbf792e23a38 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 9 Jun 2020 12:17:00 +0200 Subject: 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(). --- source/blender/editors/transform/transform_convert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/transform/transform_convert.h') diff --git a/source/blender/editors/transform/transform_convert.h b/source/blender/editors/transform/transform_convert.h index 4a6d56f6630..2465e0e99b3 100644 --- a/source/blender/editors/transform/transform_convert.h +++ b/source/blender/editors/transform/transform_convert.h @@ -57,7 +57,6 @@ void sort_trans_data_dist(TransInfo *t); void createTransData(struct bContext *C, TransInfo *t); bool clipUVTransform(TransInfo *t, float vec[2], const bool resize); void clipUVData(TransInfo *t); -void recalcData(TransInfo *t); /* transform_convert_mesh.c */ void trans_mesh_customdata_correction_init(TransInfo *t); @@ -136,6 +135,7 @@ void recalcData_gpencil_strokes(TransInfo *t); /* transform_convert_lattice.c */ void createTransLatticeVerts(TransInfo *t); +void recalcData_lattice(TransInfo *t); /* transform_convert_mask.c */ void createTransMaskingData(bContext *C, TransInfo *t); -- cgit v1.2.3