From 5d8c83527a3ba64c1e8c3b912f24150ad5355490 Mon Sep 17 00:00:00 2001 From: kurethedead <59840896+kurethedead@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:50:53 -0800 Subject: [PATCH] Removed tex1 related code from BSDF to F3D converter (#296) --- fast64_internal/f3d_material_converter.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/fast64_internal/f3d_material_converter.py b/fast64_internal/f3d_material_converter.py index c8dead3b8..584d806cc 100644 --- a/fast64_internal/f3d_material_converter.py +++ b/fast64_internal/f3d_material_converter.py @@ -202,7 +202,6 @@ def convertBSDFtoF3D(obj, index, material, materialDict): elif "Principled BSDF" in material.node_tree.nodes: tex0Node = material.node_tree.nodes["Principled BSDF"].inputs["Base Color"] - tex1Node = material.node_tree.nodes["Principled BSDF"].inputs["Subsurface Color"] if len(tex0Node.links) == 0: newMaterial = createF3DMat(obj, preset=getDefaultMaterialPreset("Shaded Solid"), index=index) f3dMat = newMaterial.f3d_mat if newMaterial.mat_ver > 3 else newMaterial @@ -226,8 +225,6 @@ def convertBSDFtoF3D(obj, index, material, materialDict): newMaterial = createF3DMat(obj, preset=presetName, index=index) f3dMat = newMaterial.f3d_mat if newMaterial.mat_ver > 3 else newMaterial f3dMat.tex0.tex = tex0Node.links[0].from_node.image - if len(tex1Node.links) > 0 and isinstance(tex1Node.links[0].from_node, bpy.types.ShaderNodeTexImage): - f3dMat.tex1.tex = tex1Node.links[0].from_node.image updateMatWithName(newMaterial, material, materialDict) else: print("Principled BSDF material does not have an Image Node attached to its Base Color.")