added wildcard node input support to backend

This commit is contained in:
shadownetdev1 2023-06-15 12:12:27 -04:00 committed by GitHub
parent 6253ec4aef
commit 5d85001de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,7 +409,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 r[val[1]] != type_input and type_input != "*":
received_type = r[val[1]]
details = f"{x}, {received_type} != {type_input}"
error = {