diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-07-01 16:26:37 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-07-01 16:27:26 +0300 |
commit | 3c6260d42de007c223c4bdb1bc8ed5431f2f2963 (patch) | |
tree | aad0c354ee88a693cb8549de884b85b8a1a50f7f /source | |
parent | 7a4c99de5a637c87c03151cd671b347590140c17 (diff) |
Fix T66301: Crash on vertex slide when the vertex is not linked to a face.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 5b3f7d85b43..22900ee3787 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -6440,6 +6440,8 @@ static void slide_origdata_create_data(TransDataContainer *tc, layer_index_dst = 0; + /* TODO: We don't need `sod->layer_math_map` when there are no loops linked + * to one of the sliding vertices. */ if (CustomData_has_math(&bm->ldata)) { /* over alloc, only 'math' layers are indexed */ sod->layer_math_map = MEM_mallocN(bm->ldata.totlayer * sizeof(int), __func__); @@ -6583,7 +6585,7 @@ static void slide_origdata_interp_data_vert(SlideOrigData *sod, } } - if (sod->layer_math_map_num) { + if (sod->layer_math_map_num && sv->cd_loop_groups) { if (do_loop_weight) { for (j = 0; j < sod->layer_math_map_num; j++) { BM_vert_loop_groups_data_layer_merge_weights( |