diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-19 00:10:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-19 00:10:56 +0400 |
commit | 3bc0552c5b16bdf1469d64d761ebd0b45e72060b (patch) | |
tree | 16913c40259deca9ce58004a0792d9fd1eec21b7 | |
parent | bea9c3ab30b5946d84298bc6fd85d38ed4a6802f (diff) |
Fix for running datablock eyedropper outside of a button.
-rw-r--r-- | source/blender/editors/interface/interface_eyedropper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_eyedropper.c b/source/blender/editors/interface/interface_eyedropper.c index 01e53d5e721..a01c7eecda1 100644 --- a/source/blender/editors/interface/interface_eyedropper.c +++ b/source/blender/editors/interface/interface_eyedropper.c @@ -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); |