bugfix [#23173] Blender crashes on selecting display color corrected image in image...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 3 Aug 2010 23:59:42 +0000 (23:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 3 Aug 2010 23:59:42 +0000 (23:59 +0000)
commit49370765189d67d4c65750d9bdff12bc369bcf8f
treee5632a15da60156848fde5212801a6e8b0eacedd
parenta72047b197c4d5ba7c87541aa9aa2cbef97c2f9e
bugfix [#23173] Blender crashes on selecting display color corrected image in image editor
notes,
- Use our own callback which doesnt exit() blender.
- Hard coded 'MONOSCNR.ICM' is bad, should this be a user preference or stored per image?
- imb->crect was being set to imb->rect in some cases, disable this because its possible 'rect' gets reallocated and crect becomes freed memory.
- when crect cant be created draw pink checkers, so users dont get confused if color correction isnt working. (previously would draw the uncorrected image, if it didnt crash)
source/blender/blenkernel/intern/colortools.c
source/blender/editors/space_image/image_draw.c
source/blender/imbuf/intern/allocimbuf.c