Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_view.c
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| ARegion *region = CTX_wm_region(C); | ARegion *region = CTX_wm_region(C); | ||||
| rctf box; | rctf box; | ||||
| const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| const Editing *ed = BKE_sequencer_editing_get(scene, false); | const Editing *ed = BKE_sequencer_editing_get(scene, false); | ||||
| if (ed == NULL) { | SEQ_timeline_boundbox(scene, SEQ_active_seqbase_get(ed), &box); | ||||
| return OPERATOR_FINISHED; | |||||
| } | |||||
| SEQ_timeline_boundbox(scene, ed->seqbasep, &box); | |||||
| UI_view2d_smooth_view(C, region, &box, smooth_viewtx); | UI_view2d_smooth_view(C, region, &box, smooth_viewtx); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void SEQUENCER_OT_view_all(wmOperatorType *ot) | void SEQUENCER_OT_view_all(wmOperatorType *ot) | ||||
| { | { | ||||
| /* Identifiers. */ | /* Identifiers. */ | ||||
| ot->name = "Frame All"; | ot->name = "Frame All"; | ||||
| ▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines | |||||