Fix T48547: Shrinkwrap fails w/ auxiliary target

Error in 0b5a0d84
This commit is contained in:
Campbell Barton 2016-05-31 14:35:35 +10:00
parent 0d4a7d50c6
commit 3ed5da0479
Notes: blender-bot 2023-02-14 07:51:28 +01:00
Referenced by issue #48547, Shrinkwrap not taking auxiliary target into account properly
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ static void shrinkwrap_calc_normal_projection(ShrinkwrapCalcData *calc, bool for
}
}
else {
if ((aux_tree = bvhtree_from_mesh_looptri(&dmauxdata_stack, calc->target, 0.0, 4, 6)) != NULL) {
if ((aux_tree = bvhtree_from_mesh_looptri(&dmauxdata_stack, auxMesh, 0.0, 4, 6)) != NULL) {
aux_callback = dmauxdata_stack.raycast_callback;
auxData = &dmauxdata_stack;
}