forked from LeenkxTeam/LNXSDK
Normal map result variable
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user