mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-21 05:58:05 -05:00
experiment: allow Any type outputs to always pass connection validation
This commit is contained in:
@@ -58,6 +58,7 @@ export const validateConnectionTypes = (sourceType: FieldType, targetType: Field
|
||||
const isSubTypeMatch = doesCardinalityMatch && (isIntToFloat || isIntToString || isFloatToString);
|
||||
|
||||
const isTargetAnyType = targetType.name === 'AnyField';
|
||||
const isSourceAnyType = sourceType.name === 'AnyField';
|
||||
|
||||
// One of these must be true for the connection to be valid
|
||||
return (
|
||||
@@ -67,6 +68,7 @@ export const validateConnectionTypes = (sourceType: FieldType, targetType: Field
|
||||
isGenericCollectionToAnyCollectionOrSingleOrCollection ||
|
||||
isCollectionToGenericCollection ||
|
||||
isSubTypeMatch ||
|
||||
isTargetAnyType
|
||||
isTargetAnyType ||
|
||||
isSourceAnyType
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user