Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-04 06:11:44 +0300
committerCampbell Barton <campbell@blender.org>2022-04-04 06:11:44 +0300
commitdc5b1d6c75717a41c00042b667bc4a1a1609e588 (patch)
tree20a1265948358ee2caa6bfba46e7de47672c3795 /source/blender/editors/curve/curve_intern.h
parentff82bb5e3a27a7e16482ff8970a844fc63844d8e (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/curve/curve_intern.h')
-rw-r--r--source/blender/editors/curve/curve_intern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/curve_intern.h b/source/blender/editors/curve/curve_intern.h
index c96b75ff3e7..0f27f26b458 100644
--- a/source/blender/editors/curve/curve_intern.h
+++ b/source/blender/editors/curve/curve_intern.h
@@ -204,7 +204,7 @@ bool ED_curve_pick_vert(struct ViewContext *vc,
*/
bool ED_curve_pick_vert_ex(struct ViewContext *vc,
short sel,
- float dist_px,
+ int dist_px,
struct Nurb **r_nurb,
struct BezTriple **r_bezt,
struct BPoint **r_bp,