Fix for running datablock eyedropper outside of a button.
This commit is contained in:
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user