Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Show First 20 Lines • Show All 2,207 Lines • ▼ Show 20 Lines | static int sequencer_strip_jump_exec(bContext *C, wmOperator *op) | ||||
| const bool next = RNA_boolean_get(op->ptr, "next"); | const bool next = RNA_boolean_get(op->ptr, "next"); | ||||
| const bool center = RNA_boolean_get(op->ptr, "center"); | const bool center = RNA_boolean_get(op->ptr, "center"); | ||||
| /* Currently do_skip_mute is always true. */ | /* Currently do_skip_mute is always true. */ | ||||
| if (!strip_jump_internal(scene, next ? SEQ_SIDE_RIGHT : SEQ_SIDE_LEFT, true, center)) { | if (!strip_jump_internal(scene, next ? SEQ_SIDE_RIGHT : SEQ_SIDE_LEFT, true, center)) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_SEEK); | DEG_id_tag_update(&scene->id, ID_RECALC_FRAME_CHANGE); | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void SEQUENCER_OT_strip_jump(wmOperatorType *ot) | void SEQUENCER_OT_strip_jump(wmOperatorType *ot) | ||||
| { | { | ||||
| /* Identifiers. */ | /* Identifiers. */ | ||||
| ▲ Show 20 Lines • Show All 1,348 Lines • Show Last 20 Lines | |||||