Blender 2.8 compatibility of image datablock

This commit is contained in:
Sybren A. Stüvel 2018-07-10 15:37:46 +02:00
parent 504b50178b
commit d7b06f0644

View File

@ -97,7 +97,14 @@ def _get_image(prop_name: bytes,
""" """
if not dblock: if not dblock:
return return
try:
ima = dblock.get_pointer(prop_name) ima = dblock.get_pointer(prop_name)
except KeyError as ex:
# No such property, just return.
log.debug('_get_image() called with non-existing property name: %s', ex)
return
if not ima: if not ima:
return return