From b0267d4039c9881404cbc2088f3d8a6ca0beacc5 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Tue, 17 Nov 2026 20:48:19 -0800 Subject: [PATCH] Normal map result variable --- leenkx/blender/lnx/material/cycles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leenkx/blender/lnx/material/cycles.py b/leenkx/blender/lnx/material/cycles.py index 84598e44..ec8a2913 100644 --- a/leenkx/blender/lnx/material/cycles.py +++ b/leenkx/blender/lnx/material/cycles.py @@ -901,9 +901,9 @@ def write_result(link: bpy.types.NodeLink) -> Optional[str]: log.warn(f'Node tree "{tree_name()}": cyclic dependency on node "{link.from_node.name}" ({res_var}); a node cannot depend on itself. Check the node group for a feedback loop.') return 'vec3(0.0)' if link.from_socket.type in ('RGB', 'RGBA', 'VECTOR') else '0.0' - # Normal map already parsed, return + # Normal map already parsed, return the result variable already applied elif link.from_node.type == 'NORMAL_MAP': - return None + return res_var return res_var