Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2183 from simonebarbieri/bugfix/blender-fix_image…
Browse files Browse the repository at this point in the history
…_pack_when_no_texture
  • Loading branch information
mkolar authored Nov 4, 2021
2 parents 91e1e91 + 393187f commit a55daf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openpype/hosts/blender/plugins/publish/extract_blend.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def process(self, instance):
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)

Expand Down

0 comments on commit a55daf8

Please sign in to comment.