Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_ops.c
| Show First 20 Lines • Show All 1,112 Lines • ▼ Show 20 Lines | static int frame_from_event(bContext *C, const wmEvent *event) | ||||
| return framenr; | return framenr; | ||||
| } | } | ||||
| static int change_frame_invoke(bContext *C, wmOperator *op, const wmEvent *event) | static int change_frame_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| if (ar->regiontype == RGN_TYPE_WINDOW) { | if (ar->regiontype == RGN_TYPE_WINDOW) { | ||||
| if (event->mval[1] > 16) { | if (event->mval[1] > 16 * UI_DPI_FAC) { | ||||
| return OPERATOR_PASS_THROUGH; | return OPERATOR_PASS_THROUGH; | ||||
| } | } | ||||
| } | } | ||||
| RNA_int_set(op->ptr, "frame", frame_from_event(C, event)); | RNA_int_set(op->ptr, "frame", frame_from_event(C, event)); | ||||
| change_frame_apply(C, op); | change_frame_apply(C, op); | ||||
| ▲ Show 20 Lines • Show All 767 Lines • Show Last 20 Lines | |||||