Merge pull request #2183 from simonebarbieri/bugfix/blender-fix_image_pack_when_no_texture

This commit is contained in:
Milan Kolar 2021-11-04 16:34:51 +01:00 committed by GitHub
commit a55daf8712
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)