[Bf-blender-cvs] [b5ba14e] master: Fix T48915: Wrong threshold on scaled objects and ortho view.

Germano Cavalcante noreply at git.blender.org
Thu Jul 21 21:37:25 CEST 2016


Commit: b5ba14ef7097c18080834aff03a70c5398745579
Author: Germano Cavalcante
Date:   Thu Jul 21 16:36:20 2016 -0300
Branches: master
https://developer.blender.org/rBb5ba14ef7097c18080834aff03a70c5398745579

Fix T48915: Wrong threshold on scaled objects and ortho view.

`ray_is_normalized` == true in DerivedMesh

===================================================================

M	source/blender/editors/transform/transform_snap_object.c

===================================================================

diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index 5b68bdc..1d4872c 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -1362,7 +1362,7 @@ static bool snapDerivedMesh(
 
 				if (BLI_bvhtree_find_nearest_to_ray(
 				        treedata->tree, ray_org_local, ray_normal_local,
-				        false, ob_scale, &nearest, cb_test_ray_dist, &userdata) != -1)
+				        true, ob_scale, &nearest, cb_test_ray_dist, &userdata) != -1)
 				{
 					copy_v3_v3(r_loc, nearest.co);
 					mul_m4_v3(obmat, r_loc);




More information about the Bf-blender-cvs mailing list