diff --git a/assets/js/src/LayersControl.tsx b/assets/js/src/LayersControl.tsx index 622a134..903cd4b 100644 --- a/assets/js/src/LayersControl.tsx +++ b/assets/js/src/LayersControl.tsx @@ -449,6 +449,7 @@ const LayersControl = () => { controlnetDetect, ip_adapter_models, ip_adapter_weight_types, + unionControlnetTypes, } = useControlnet(); // const { register, handleSubmit, setValue } = useForm(); @@ -905,6 +906,22 @@ const LayersControl = () => { )} + {backend === "comfy" && !activeControlnetLayer?.isIpAdapter && ( + + handleControlnetAttrsChange( + "is_union", + value, + activeControlnetLayer.id + ) + } + > + Union Controlnet + + )} + {backend === "comfy" && activeControlnetLayer?.isIpAdapter ? ( <>
@@ -993,6 +1010,31 @@ const LayersControl = () => { )} + {backend === "comfy" && + !activeControlnetLayer?.isIpAdapter && + activeControlnetLayer?.is_union && ( +
+ +