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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-11-13 22:54:07 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-11-13 22:54:07 +0300
commit92819425d86017f371fa8e78db54d4fb976a0235 (patch)
tree03d315fb09e8fee97a0ab065012e5e77299ce82c /source/blender/blenkernel/intern/mesh_remap.c
parent1e361880a9bcfba136a556c4201ca96dbdd88eb1 (diff)
Fix T46762: UV transfer Object transform crash.
Own very stupid mistake this time... :|
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_remap.c')
-rw-r--r--source/blender/blenkernel/intern/mesh_remap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_remap.c b/source/blender/blenkernel/intern/mesh_remap.c
index cb2d7ff8269..fcc01c82fb8 100644
--- a/source/blender/blenkernel/intern/mesh_remap.c
+++ b/source/blender/blenkernel/intern/mesh_remap.c
@@ -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;