Page MenuHome

bpy_extras.image_utils.load_image always returns placeholder
Closed, ResolvedPublic


At the end of the _image_load function, it always replaces the image with a placeholder even if the image has been found and loaded from disk. When importing files using this function, the image returned always end up with a numbered suffix, and the originally loaded image is left with no users.

I suggest changing to this:

if place_holder and not image:
image = _image_load_placeholder(path)



Event Timeline

applied suggested fix, thanks. r44138.

log ---
interestingly even though this is a bug (in that its returning a placeholder when it should load the image), since the placeholder points to the correct path, the image will load correctly when refreshed, so the bug's not too bad.