diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-05-08 15:10:09 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-05-08 15:10:09 +0300 |
commit | c79fc710b3f97e5bcf8db59fc358d430617e08c9 (patch) | |
tree | e541e7600529c471a366a26e047ed6bc375d9561 /source/blender/editors/animation | |
parent | 6950faa24eff7bf756ebed7e3d86e37966cabfc4 (diff) |
Keymap: Special keymap for clip editor scrubbing area
Reviewers: sergey
Differential Revision: https://developer.blender.org/D4825
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_scrubbing.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_scrubbing.c b/source/blender/editors/animation/anim_scrubbing.c index a22d1b494fc..507d48cad31 100644 --- a/source/blender/editors/animation/anim_scrubbing.c +++ b/source/blender/editors/animation/anim_scrubbing.c @@ -155,6 +155,13 @@ void ED_scrubbing_draw(const ARegion *ar, GPU_matrix_pop_projection(); } +bool ED_event_in_scrubbing_region(const ARegion *ar, const wmEvent *event) +{ + rcti rect = ar->winrct; + rect.ymin = rect.ymax - UI_SCRUBBING_MARGIN_Y; + return BLI_rcti_isect_pt(&rect, event->x, event->y); +} + void ED_channel_search_draw(const bContext *C, ARegion *ar, bDopeSheet *dopesheet) { GPU_matrix_push_projection(); |