Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Show First 20 Lines • Show All 2,806 Lines • ▼ Show 20 Lines | void SEQUENCER_OT_meta_separate(wmOperatorType *ot) | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| } | } | ||||
| /* view_all operator */ | /* view_all operator */ | ||||
| static int sequencer_view_all_exec(bContext *C, wmOperator *op) | static int sequencer_view_all_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| View2D *v2d = UI_view2d_fromcontext(C); | rctf box; | ||||
| const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | ||||
| UI_view2d_smooth_view(C, ar, &v2d->tot, smooth_viewtx); | boundbox_seq(CTX_data_scene(C), &box); | ||||
| UI_view2d_smooth_view(C, ar, &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 = "View All"; | ot->name = "View All"; | ||||
| ot->idname = "SEQUENCER_OT_view_all"; | ot->idname = "SEQUENCER_OT_view_all"; | ||||
| ▲ Show 20 Lines • Show All 1,350 Lines • Show Last 20 Lines | |||||