io_scene_3ds: cleanup texture handling #10
@ -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:
|
||||||
|
Reference in New Issue
Block a user