From dd1edb0954b5441255b5a3616841228f466e448e Mon Sep 17 00:00:00 2001 From: mano-wii Date: Tue, 11 Jul 2017 13:47:28 -0300 Subject: Snap System: Separate raycast functions from nearest2d functions The only similarity between these functions is that both serve to snap. However their codes are totally different from one another. So by separating these functions, it: - removes the need to put several conditions; - simplifies and - optimizes the code --- source/blender/editors/include/ED_transform_snap_object_context.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/editors/include/ED_transform_snap_object_context.h') diff --git a/source/blender/editors/include/ED_transform_snap_object_context.h b/source/blender/editors/include/ED_transform_snap_object_context.h index 6eaae49912c..8066adf55ce 100644 --- a/source/blender/editors/include/ED_transform_snap_object_context.h +++ b/source/blender/editors/include/ED_transform_snap_object_context.h @@ -84,7 +84,6 @@ void ED_transform_snap_object_context_set_editmesh_callbacks( bool ED_transform_snap_object_project_ray_ex( struct SnapObjectContext *sctx, - const unsigned short snap_to, const struct SnapObjectParams *params, const float ray_start[3], const float ray_normal[3], float *ray_depth, /* return args */ @@ -98,7 +97,6 @@ bool ED_transform_snap_object_project_ray( bool ED_transform_snap_object_project_ray_all( SnapObjectContext *sctx, - const unsigned short snap_to, const struct SnapObjectParams *params, const float ray_start[3], const float ray_normal[3], float ray_depth, bool sort, -- cgit v1.2.3