diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-24 09:50:20 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-05 11:36:07 +0300 |
commit | 9a7d57633213dd430f01faaa30ab009907a5770c (patch) | |
tree | e28aa830821105bed3a1ad09953f0dcac8e58a00 /source/blender | |
parent | 5bfa814dcba5b8f88086d8c1b6dbac7a459501fa (diff) |
Fix T47838: Walk gravity fails w/ intersecting objects
Regression in 3ad0344, fix from @mano-wii.
More comprehensive fix can be done after 2.77a.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index 3622012c2c8..bb9120c337b 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -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; } |