diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-15 23:41:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-15 23:41:39 +0300 |
commit | e9313749a1c1e9491d100a80ead1496d9f900162 (patch) | |
tree | d24cd5024dd31d8fd48b433860f19d336de5fabf /source/blender | |
parent | 866ecdebe709636bd5bbba94236595b7b57b8cc9 (diff) |
bugfix [#20920] crash when render without camera and clicking into histogram (p)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index efb224bcf2e..6f3faeeda35 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -406,10 +406,11 @@ static void rna_SpaceImageEditor_histogram_update(Main *bmain, Scene *scene, Poi void *lock; ibuf= ED_space_image_acquire_buffer(sima, &lock); - histogram_update(&sima->hist, ibuf); + if(ibuf) { + histogram_update(&sima->hist, ibuf); + WM_main_add_notifier(NC_IMAGE, sima->image); + } ED_space_image_release_buffer(sima, lock); - - WM_main_add_notifier(NC_IMAGE, sima->image); } |