Enable the use of variant types in node out/input

This commit is contained in:
Jacob Segal 2023-06-22 18:54:07 -07:00
parent 9ba440995a
commit 7e4bc4451b

View File

@ -425,7 +425,7 @@ def validate_inputs(prompt, item, validated):
o_id = val[0]
o_class_type = prompt[o_id]['class_type']
r = nodes.NODE_CLASS_MAPPINGS[o_class_type].RETURN_TYPES
if r[val[1]] != type_input:
if type_input != "*" and r[val[1]] != "*" and r[val[1]] != type_input:
received_type = r[val[1]]
details = f"{x}, {received_type} != {type_input}"
error = {