Blender 2.8 compatibility of image datablock
This commit is contained in:
parent
504b50178b
commit
d7b06f0644
@ -97,7 +97,14 @@ def _get_image(prop_name: bytes,
|
|||||||
"""
|
"""
|
||||||
if not dblock:
|
if not dblock:
|
||||||
return
|
return
|
||||||
ima = dblock.get_pointer(prop_name)
|
|
||||||
|
try:
|
||||||
|
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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user