Fix T46762: UV transfer Object transform crash.

Own very stupid mistake this time... :|
This commit is contained in:
Bastien Montagne 2015-11-13 20:54:07 +01:00
parent 1e361880a9
commit 92819425d8
Notes: blender-bot 2023-02-14 08:26:28 +01:00
Referenced by issue #46762, UV transfer Object transform crash
1 changed files with 6 additions and 2 deletions

View File

@ -1438,7 +1438,9 @@ void BKE_mesh_remap_calc_loops_from_dm(
if (mode == MREMAP_MODE_LOOP_NEAREST_POLYNOR) {
copy_v3_v3(pnor_dst, poly_nors_dst[pidx_dst]);
BLI_space_transform_apply_normal(space_transform, pnor_dst);
if (space_transform) {
BLI_space_transform_apply_normal(space_transform, pnor_dst);
}
}
if ((size_t)mp_dst->totloop > islands_res_buff_size) {
@ -1473,7 +1475,9 @@ void BKE_mesh_remap_calc_loops_from_dm(
if (mode == MREMAP_MODE_LOOP_NEAREST_LOOPNOR) {
copy_v3_v3(tmp_no, loop_nors_dst[plidx_dst + mp_dst->loopstart]);
BLI_space_transform_apply_normal(space_transform, tmp_no);
if (space_transform) {
BLI_space_transform_apply_normal(space_transform, tmp_no);
}
nor_dst = &tmp_no;
nors_src = loop_nors_src;
vert_to_refelem_map_src = vert_to_loop_map_src;