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:
authormano-wii <germano.costa@ig.com.br>2019-07-01 16:26:37 +0300
committermano-wii <germano.costa@ig.com.br>2019-07-01 16:27:26 +0300
commit3c6260d42de007c223c4bdb1bc8ed5431f2f2963 (patch)
treeaad0c354ee88a693cb8549de884b85b8a1a50f7f
parent7a4c99de5a637c87c03151cd671b347590140c17 (diff)
Fix T66301: Crash on vertex slide when the vertex is not linked to a face.
-rw-r--r--source/blender/editors/transform/transform.c4
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(