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:
authorJacques Lucke <mail@jlucke.com>2019-05-08 15:10:09 +0300
committerJacques Lucke <mail@jlucke.com>2019-05-08 15:10:09 +0300
commitc79fc710b3f97e5bcf8db59fc358d430617e08c9 (patch)
treee541e7600529c471a366a26e047ed6bc375d9561 /source/blender/editors/animation
parent6950faa24eff7bf756ebed7e3d86e37966cabfc4 (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.c7
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();