diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-04 17:57:01 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-04 17:57:01 +0300 |
commit | b27b4743a233bc9ba0d63aa33162324347bf371f (patch) | |
tree | 83f8f3661f849d1a063f6466f0228758a1c8162f /source/blender/blenkernel/intern/constraint.c | |
parent | 02788a9d1a099662acffcd88a6a58a2b15b85512 (diff) |
BKE: bvhuils: remove member `sphere_radius`.
This member currently doubles the value of `ray->radius` or is not even used.
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 88b2ca20563..13358311f92 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -3568,8 +3568,7 @@ static void shrinkwrap_get_tarmat(bConstraint *con, bConstraintOb *cob, bConstra break; } - treeData.sphere_radius = scon->dist; - if (BKE_shrinkwrap_project_normal(0, co, no, treeData.sphere_radius, &transform, treeData.tree, + if (BKE_shrinkwrap_project_normal(0, co, no, scon->dist, &transform, treeData.tree, &hit, treeData.raycast_callback, &treeData) == false) { fail = true; |