diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-05-12 12:30:16 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-05-12 12:37:05 +0300 |
commit | 87dd8dc7406750bb1622ac84a04aded93c2670a4 (patch) | |
tree | 4117255614a0d65b948eb911f1330eec8bef752e /source/blender/editors/space_clip/clip_intern.h | |
parent | 993d17af90112ad62d98ccdfa110bd97dd0516d8 (diff) |
Cleanup: Hide slide operator specific logic
Use a more semantically clear function in the tracking API.
Diffstat (limited to 'source/blender/editors/space_clip/clip_intern.h')
-rw-r--r-- | source/blender/editors/space_clip/clip_intern.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_intern.h b/source/blender/editors/space_clip/clip_intern.h index dd01c095479..90ede7e951b 100644 --- a/source/blender/editors/space_clip/clip_intern.h +++ b/source/blender/editors/space_clip/clip_intern.h @@ -187,8 +187,10 @@ void clip_draw_sfra_efra(struct View2D *v2d, struct Scene *scene); /* tracking_ops.c */ -struct MovieTrackingTrack *tracking_marker_check_slide( - struct bContext *C, const struct wmEvent *event, int *r_area, int *r_action, int *r_corner); +/* Find track in a proximity of the given event. + * Uses the same rules w.r.t distance tolerances for track sliding and selection operators. */ +struct MovieTrackingTrack *tracking_find_track_in_proximity(struct bContext *C, + const struct wmEvent *event); void CLIP_OT_add_marker(struct wmOperatorType *ot); void CLIP_OT_add_marker_at_click(struct wmOperatorType *ot); |