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

Commit

Permalink
Fix an issue when reloading images
Browse files Browse the repository at this point in the history
  • Loading branch information
passivestar committed Oct 28, 2024
1 parent 25ba848 commit 7b3d26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

bl_info = {
'name': 'Substance Import-Export Tools',
'version': (1, 3, 24),
'version': (1, 3, 25),
'author': 'passivestar',
'blender': (4, 1, 0),
'location': '3D View N Panel',
Expand Down Expand Up @@ -243,7 +243,7 @@ def execute(self, context):
for material in obj.data.materials:
if material is not None and material.use_nodes:
for node in material.node_tree.nodes:
if node.bl_idname == 'ShaderNodeTexImage':
if node.bl_idname == 'ShaderNodeTexImage' and node.image:
unique_images.add(node.image)
for image in unique_images:
image.reload()
Expand Down

0 comments on commit 7b3d26a

Please sign in to comment.