Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/util/ed_util_imbuf.c
| Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | |||||
| static void sequencer_sample_apply(bContext *C, wmOperator *op, const wmEvent *event) | static void sequencer_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_ensure_evaluated_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 *region = CTX_wm_region(C); | ARegion *region = CTX_wm_region(C); | ||||
| ImBuf *ibuf = sequencer_ibuf_get(bmain, depsgraph, scene, sseq, CFRA, 0, NULL); | ImBuf *ibuf = sequencer_ibuf_get(bmain, region, 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) { | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| info->draw = 0; | info->draw = 0; | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines | |||||