fix [#30201] bpy_extras.image_utils.load_image always returns placeholder

in existing addons this only effects OBJ import.

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.
This commit is contained in:
Campbell Barton 2012-02-16 04:08:52 +00:00
parent 93526b4c72
commit a0feea1fc0

@ -97,7 +97,7 @@ def load_image(imagepath,
# image path has been checked so the path could not be read for some # image path has been checked so the path could not be read for some
# reason, so be sure to return a placeholder # reason, so be sure to return a placeholder
if place_holder: if place_holder and image is None:
image = _image_load_placeholder(path) image = _image_load_placeholder(path)
return image return image