From a25703eb36c6d88d93e2d0645d413c339ce82d36 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 25 Apr 2013 09:39:03 +0000 Subject: ruler snap adjustments - when in wireframe mode: don't snap to faces, instead snap to the closest edge/vertex. - when not in wireframe mode: snap to the front-most element (was a problem that it could snap to an edge/vert behind the face) - reduce the distance for selecting ruler points, was too easy to accidentally drag a ruler. --- source/blender/editors/include/ED_transform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index dc4eb298998..256ff2d53ed 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -186,7 +186,8 @@ bool snapObjectsTransform(struct TransInfo *t, const float mval[2], float *r_dis bool snapObjectsContext(struct bContext *C, const float mval[2], float *r_dist_px, float r_loc[3], float r_no[3], SnapMode mode); /* taks args for all settings */ bool snapObjectsEx(struct Scene *scene, struct Base *base_act, struct View3D *v3d, struct ARegion *ar, struct Object *obedit, short snap_mode, - const float mval[2], float *r_dist_px, float r_loc[3], float r_no[3], SnapMode mode); + const float mval[2], float *r_dist_px, + float r_loc[3], float r_no[3], float *r_ray_dist, SnapMode mode); bool snapObjectsRayEx(struct Scene *scene, struct Base *base_act, struct View3D *v3d, struct ARegion *ar, struct Object *obedit, short snap_mode, struct Object **r_ob, float r_obmat[4][4], const float ray_start[3], const float ray_normal[3], float *r_ray_dist, -- cgit v1.2.3