Fix T47838: Walk gravity fails w/ intersecting objects

Regression in 3ad0344, fix from @mano-wii.

More comprehensive fix can be done after 2.77a.
This commit is contained in:
Campbell Barton
2016-03-24 17:50:20 +11:00
parent 17d0c10096
commit 75849b099f

View File

@@ -1574,7 +1574,9 @@ static bool snapDerivedMesh(
bb = &bb_temp;
}
len_diff = local_depth;
/* was local_depth, see: T47838 */
len_diff = BVH_RAYCAST_DIST_MAX;
if (!BKE_boundbox_ray_hit_check(bb, ray_start_local, ray_normal_local, &len_diff)) {
return retval;
}