diff --git a/efficiency_nodes.py b/efficiency_nodes.py index fb17119..669f11b 100644 --- a/efficiency_nodes.py +++ b/efficiency_nodes.py @@ -369,8 +369,8 @@ class TSC_Apply_ControlNet_Stack: @classmethod def INPUT_TYPES(cls): return {"required": {"positive": ("CONDITIONING",), - "negative": ("CONDITIONING",), - "cnet_stack": ("CONTROL_NET_STACK",)}, + "negative": ("CONDITIONING",)}, + "optional": {"cnet_stack": ("CONTROL_NET_STACK",)} } RETURN_TYPES = ("CONDITIONING","CONDITIONING",) @@ -378,7 +378,10 @@ def INPUT_TYPES(cls): FUNCTION = "apply_cnet_stack" CATEGORY = "Efficiency Nodes/Stackers" - def apply_cnet_stack(self, positive, negative, cnet_stack): + def apply_cnet_stack(self, positive, negative, cnet_stack=None): + if cnet_stack is None: + return (positive, negative) + for control_net_tuple in cnet_stack: control_net, image, strength, start_percent, end_percent = control_net_tuple controlnet_conditioning = ControlNetApplyAdvanced().apply_controlnet(positive, negative, control_net, image,