Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / transform / transform_conversions.c
index 7c45eaef51c2b16ce3d1ab21e3cbf9a1efe63f54..40d35fe8af5722639ed4210bbba766d2e9320072 100644 (file)
@@ -2266,7 +2266,7 @@ static struct TransIslandData *editmesh_islands_info_calc(
                }
 
                if (group_tot_single != 0) {
-                       trans_islands = MEM_reallocN(trans_islands, group_tot + group_tot_single);
+                       trans_islands = MEM_reallocN(trans_islands, sizeof(*trans_islands) * (group_tot + group_tot_single));
 
                        BM_ITER_MESH_INDEX (v, &viter, bm, BM_VERTS_OF_MESH, i) {
                                if (BM_elem_flag_test(v, BM_ELEM_SELECT) && (vert_map[i] == -1)) {