diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-13 22:31:34 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-13 22:31:34 +0300 |
commit | 1e361880a9bcfba136a556c4201ca96dbdd88eb1 (patch) | |
tree | f5b33d4a0b5b4df8ab17d997c114d7753dbe62f3 /source | |
parent | 8ad2808fd74b4d74218deeb7e41e9d45e8fd5571 (diff) |
Fix T46469: Data Transfer Modifier don't work.
Pretty nice copy/paste typo in looptri work...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_remap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_remap.c b/source/blender/blenkernel/intern/mesh_remap.c index 258131f46ed..cb2d7ff8269 100644 --- a/source/blender/blenkernel/intern/mesh_remap.c +++ b/source/blender/blenkernel/intern/mesh_remap.c @@ -583,7 +583,7 @@ void BKE_mesh_remap_calc_verts_from_dm( } if (mesh_remap_bvhtree_query_nearest(&treedata, &nearest, tmp_co, max_dist_sq, &hit_dist)) { - const MLoopTri *lt = &treedata.looptri[rayhit.index]; + const MLoopTri *lt = &treedata.looptri[nearest.index]; MPoly *mp = &polys_src[lt->poly]; if (mode == MREMAP_MODE_VERT_POLY_NEAREST) { @@ -812,7 +812,7 @@ void BKE_mesh_remap_calc_edges_from_dm( } if (mesh_remap_bvhtree_query_nearest(&treedata, &nearest, tmp_co, max_dist_sq, &hit_dist)) { - const MLoopTri *lt = &treedata.looptri[rayhit.index]; + const MLoopTri *lt = &treedata.looptri[nearest.index]; MPoly *mp_src = &polys_src[lt->poly]; MLoop *ml_src = &loops_src[mp_src->loopstart]; int nloops = mp_src->totloop; |