Image Py API: Expose 'load_exists' to RNA image load(), and extend load_image() helper.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 5 Oct 2015 16:49:20 +0000 (18:49 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 5 Oct 2015 16:49:20 +0000 (18:49 +0200)
commit1cdf82d7f8dd117441405b99f744e2f7095e5c7c
tree520f3a938ae8aeafc37be7a0ce13527759a6a858
parente5552f82415708778fefd11c0c57cd52213e823e
Image Py API: Expose 'load_exists' to RNA image load(), and extend load_image() helper.

Expose our `BKE_image_load_exists` feature through an optional parameter to `Image.load()`.

Extend `image_utils.load_image()` with two optional parameters, to return existing image datablock
if possible, and in that case, to force reloading said image.

Needed by incomming 'import images as planes' addon enhancement.
release/scripts/modules/bpy_extras/image_utils.py
source/blender/makesrna/intern/rna_main_api.c