Fix T51756: Fix crash when transforming vertices in edit mode
The issue was caused by under-allocation of UV islands calculation.
This commit is contained in:
parent
ab4b7b5368
commit
d583af0026
Notes:
blender-bot
2023-02-14 06:54:27 +01:00
Referenced by issue #51756, Random crashes while translating geometry. Shrinkwrap modifier + Proportional editing + Individual Origins Pivot.
|
@ -2280,7 +2280,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)) {
|
||||
|
|
Loading…
Reference in New Issue