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