[Bf-blender-cvs] [2771f602e6f] master: Snap System: remove unused function
mano-wii
noreply at git.blender.org
Thu Jul 13 01:43:41 CEST 2017
Commit: 2771f602e6f03b284f3b2852494962ba6ded7e9d
Author: mano-wii
Date: Wed Jul 12 20:43:28 2017 -0300
Branches: master
https://developer.blender.org/rB2771f602e6f03b284f3b2852494962ba6ded7e9d
Snap System: remove unused function
===================================================================
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 fa17ab34cf9..52fb8411f92 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -262,17 +262,6 @@ MINLINE float depth_get(const float co[3], const float ray_start[3], const float
return dot_v3v3(dvec, ray_dir);
}
-static float UNUSED_FUNCTION(dist_aabb_to_plane)(
- const float bbmin[3], const float bbmax[3],
- const float plane_co[3], const float plane_no[3])
-{
- const float local_bvmin[3] = {
- (plane_no[0] < 0) ? bbmax[0] : bbmin[0],
- (plane_no[1] < 0) ? bbmax[1] : bbmin[1],
- (plane_no[2] < 0) ? bbmax[2] : bbmin[2],
- };
- return depth_get(local_bvmin, plane_co, plane_no);
-}
static bool walk_parent_bvhroot_cb(const BVHTreeAxisRange *bounds, void *userdata)
{
@@ -285,6 +274,7 @@ static bool walk_parent_bvhroot_cb(const BVHTreeAxisRange *bounds, void *userdat
return false;
}
+
static bool isect_ray_bvhroot_v3(struct BVHTree *tree, const float ray_start[3], const float ray_dir[3], float *depth)
{
BVHTreeRay ray;
More information about the Bf-blender-cvs
mailing list