from_node, from_sock = get_linked_node_and_socket(node_tree, input_socket)
if strength_socket:
if not from_node:
- if input_socket.default_value[:3]!=(1.0, 1.0, 1.0):
- raise Exception("Unsupported material property scale {}".format(input_socket.default_value))
from_node, from_sock = get_linked_node_and_socket(node_tree, strength_socket)
+ if from_node and input_socket.default_value[:3]!=(1.0, 1.0, 1.0):
+ raise Exception("Unsupported material property scale {}".format(tuple(input_socket.default_value)))
elif strength_socket.is_linked:
raise Exception("Separate inputs for value and strength are not supported")
elif strength_socket.default_value!=1.0: