Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | static void proxy_endjob(void *pjv) | ||||
| WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, pj->scene); | WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, pj->scene); | ||||
| } | } | ||||
| static void seq_proxy_build_job(const bContext *C) | static void seq_proxy_build_job(const bContext *C) | ||||
| { | { | ||||
| wmJob *wm_job; | wmJob *wm_job; | ||||
| ProxyJob *pj; | ProxyJob *pj; | ||||
| struct Depsgraph *depsgraph = CTX_data_depsgraph(C); | struct Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C); | ||||
| 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); | ||||
| ScrArea *sa = CTX_wm_area(C); | ScrArea *sa = CTX_wm_area(C); | ||||
| Sequence *seq; | Sequence *seq; | ||||
| GSet *file_list; | GSet *file_list; | ||||
| if (ed == NULL) { | if (ed == NULL) { | ||||
| return; | return; | ||||
| ▲ Show 20 Lines • Show All 3,414 Lines • ▼ Show 20 Lines | static int sequencer_rebuild_proxy_invoke(bContext *C, | ||||
| seq_proxy_build_job(C); | seq_proxy_build_job(C); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int sequencer_rebuild_proxy_exec(bContext *C, wmOperator *UNUSED(op)) | static int sequencer_rebuild_proxy_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| struct Depsgraph *depsgraph = CTX_data_depsgraph(C); | struct Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| 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); | ||||
| Sequence *seq; | Sequence *seq; | ||||
| GSet *file_list; | GSet *file_list; | ||||
| if (ed == NULL) { | if (ed == NULL) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 553 Lines • Show Last 20 Lines | |||||