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 ee97a4410e - Show all commits

View File

@ -731,8 +731,8 @@ def make_material_chunk(material, image):
diffuse = [] diffuse = []
for link in wrap.material.node_tree.links: for link in wrap.material.node_tree.links:
if link.from_node.type == 'TEX_IMAGE' and link.to_node.type != 'BSDF_PRINCIPLED': if link.from_node.type == 'TEX_IMAGE' and link.to_node.type == 'MIX_RGB':
diffuse = [link.from_node.image] if not wrap.normalmap_texture else None diffuse = [link.from_node.image]
if diffuse: if diffuse:
if primary_tex == False: if primary_tex == False: