Fix T61714, T61712: crash reloading images after recent changes.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 19 Feb 2019 14:29:58 +0000 (15:29 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 19 Feb 2019 14:40:04 +0000 (15:40 +0100)
commit38f0d5f75af7d2f30156f4008dc5bc8d8394fbf3
treee4c46983e63fa98f75b61f9cc08e3c667586e24c
parent22eeae8104505b176cee5b9bba2071303b4465ea
Fix T61714, T61712: crash reloading images after recent changes.

Now that we are looping over all image users that were previously ignored,
it shows some scene pointers are invalid. Always clear them on load, and
don't keep scene permanently in the image user except for the image editor.
Otherwise the pointer can go out of date.
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_view3d/view3d_draw_legacy.c