Blender Git Commit Log

Git Commits -> Revision 1cdf82d

Revision 1cdf82d by Bastien Montagne (master)
October 5, 2015, 16:49 (GMT)
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.

Commit Details:

Full Hash: 1cdf82d7f8dd117441405b99f744e2f7095e5c7c
Parent Commit: e5552f8
Lines Changed: +20, -3

2 Modified Paths:

/release/scripts/modules/bpy_extras/image_utils.py (+11, -1) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+9, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021