Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_view.c
| Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | ED_image_draw_info(scene, | ||||
| NULL, | NULL, | ||||
| NULL); | NULL); | ||||
| } | } | ||||
| } | } | ||||
| static void sample_apply(bContext *C, wmOperator *op, const wmEvent *event) | static void sample_apply(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| 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); | ||||
| SpaceSeq *sseq = (SpaceSeq *)CTX_wm_space_data(C); | SpaceSeq *sseq = (SpaceSeq *)CTX_wm_space_data(C); | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| ImBuf *ibuf = sequencer_ibuf_get(bmain, depsgraph, scene, sseq, CFRA, 0, NULL); | ImBuf *ibuf = sequencer_ibuf_get(bmain, depsgraph, scene, sseq, CFRA, 0, NULL); | ||||
| ImageSampleInfo *info = op->customdata; | ImageSampleInfo *info = op->customdata; | ||||
| float fx, fy; | float fx, fy; | ||||
| if (ibuf == NULL) { | if (ibuf == NULL) { | ||||
| ▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines | |||||