Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Context not available. | |||||
| WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene); | WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene); | ||||
| BKE_report(op->reports, RPT_INFO, "Grouped selected strips into a metastrip"); | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| Context not available. | |||||
| ot->description = "Group selected strips into a metastrip"; | ot->description = "Group selected strips into a metastrip"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->invoke = WM_operator_confirm; | |||||
| ot->exec = sequencer_meta_make_exec; | ot->exec = sequencer_meta_make_exec; | ||||
| ot->poll = sequencer_edit_poll; | ot->poll = sequencer_edit_poll; | ||||
| Context not available. | |||||
| } | } | ||||
| /* separate_meta_make operator */ | /* separate_meta_make operator */ | ||||
| static int sequencer_meta_separate_exec(bContext *C, wmOperator *UNUSED(op)) | static int sequencer_meta_separate_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Editing *ed = BKE_sequencer_editing_get(scene, FALSE); | Editing *ed = BKE_sequencer_editing_get(scene, FALSE); | ||||
| Context not available. | |||||
| WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene); | WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene); | ||||
| BKE_report(op->reports, RPT_INFO, "Metastrip content put back into the sequencer"); | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| Context not available. | |||||
| ot->description = "Put the contents of a metastrip back in the sequencer"; | ot->description = "Put the contents of a metastrip back in the sequencer"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->invoke = WM_operator_confirm; | |||||
| ot->exec = sequencer_meta_separate_exec; | ot->exec = sequencer_meta_separate_exec; | ||||
| ot->poll = sequencer_edit_poll; | ot->poll = sequencer_edit_poll; | ||||
| Context not available. | |||||