Fix T46469: Data Transfer Modifier don't work.
Pretty nice copy/paste typo in looptri work...
This commit is contained in:
parent
8ad2808fd7
commit
1e361880a9
Notes:
blender-bot
2023-02-14 08:32:20 +01:00
Referenced by issue #46469, Data Transfer Modifier don't work.
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue