Fix trying to pack an image but the shader node has no texture

This commit is contained in:
Simone Barbieri 2021-10-27 15:56:06 +01:00
parent 1456fa9c4e
commit 393187fef8

View file

@ -37,7 +37,8 @@ class ExtractBlend(openpype.api.Extractor):
if tree.type == 'SHADER':
for node in tree.nodes:
if node.bl_idname == 'ShaderNodeTexImage':
node.image.pack()
if node.image:
node.image.pack()
bpy.data.libraries.write(filepath, data_blocks)