/* single point sample & set */ static bool datadropper_id_sample(bContext *C, DataDropper *ddr, int mx, int my) { ID *id = NULL; datadropper_id_sample_pt(C, ddr, mx, my, &id); return datadropper_id_set(C, ddr, id); }
static void datadropper_cancel(bContext *C, wmOperator *op) { DataDropper *ddr = op->customdata; datadropper_id_set(C, ddr, ddr->init_id); datadropper_exit(C, op); }