3
11

io_scene_3ds: cleanup texture handling #10

Merged
Sebastian Sille merged 5 commits from :main into main 2023-02-28 18:43:57 +01:00
Showing only changes of commit 6b80a47e76 - Show all commits

View File

@ -313,7 +313,7 @@ def add_texture_to_material(image, contextWrapper, pct, extend, alpha, scale, of
nodes.remove(own_node)
for imgs in bpy.data.images:
if imgs.name[-3:].isdigit():
if not img.users:
if not imgs.users:
bpy.data.images.remove(imgs)
else:
links.new(img_wrap.node_image.outputs['Alpha'], img_wrap.socket_dst)