diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-04 06:11:44 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-04 06:11:44 +0300 |
commit | dc5b1d6c75717a41c00042b667bc4a1a1609e588 (patch) | |
tree | 20a1265948358ee2caa6bfba46e7de47672c3795 /source/blender/editors/include/ED_curve.h | |
parent | ff82bb5e3a27a7e16482ff8970a844fc63844d8e (diff) |
Cleanup: pass selection threshold to curve picking
Remove the extended version of ED_curve_editnurb_select_pick,
pass the size threshold directly to this function but as the distance in
pixels instead of a multiplier for ED_view3d_select_dist_px.
Using a multiplier is a less direct way to reference the threshold.
Diffstat (limited to 'source/blender/editors/include/ED_curve.h')
-rw-r--r-- | source/blender/editors/include/ED_curve.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/editors/include/ED_curve.h b/source/blender/editors/include/ED_curve.h index 191291ad91b..9f4833bf1d7 100644 --- a/source/blender/editors/include/ED_curve.h +++ b/source/blender/editors/include/ED_curve.h @@ -48,18 +48,12 @@ void ED_curve_editnurb_make(struct Object *obedit); void ED_curve_editnurb_free(struct Object *obedit); /** - * \return True when pick finds an element or the selection changed. + * \param dist_px: Maximum distance to pick (in pixels). */ bool ED_curve_editnurb_select_pick(struct bContext *C, const int mval[2], + int dist_px, const struct SelectPick_Params *params); -/** - * \param sel_dist_mul: A multiplier on the default select distance. - */ -bool ED_curve_editnurb_select_pick_ex(struct bContext *C, - const int mval[2], - const float sel_dist_mul, - const struct SelectPick_Params *params); struct Nurb *ED_curve_add_nurbs_primitive( struct bContext *C, struct Object *obedit, float mat[4][4], int type, int newob); |