Fix for running datablock eyedropper outside of a button.

This commit is contained in:
Campbell Barton 2013-11-19 07:10:56 +11:00
parent bea9c3ab30
commit 3bc0552c5b

@ -439,7 +439,9 @@ static void datadropper_exit(bContext *C, wmOperator *op)
if (op->customdata) {
DataDropper *ddr = (DataDropper *)op->customdata;
ED_region_draw_cb_exit(ddr->art, ddr->draw_handle_pixel);
if (ddr->art) {
ED_region_draw_cb_exit(ddr->art, ddr->draw_handle_pixel);
}
MEM_freeN(op->customdata);