From c764262f9354e2b61906c753999b5371546ff09d Mon Sep 17 00:00:00 2001 From: Deep Mehta Date: Fri, 22 May 2026 17:21:09 -0700 Subject: [PATCH] fix: return tuple from WAS_CLIP_Vision_Input_Switch on False branch clip_vision_switch returned (clip_vision_b) on the else branch, which is a grouped expression rather than a single-element tuple. ComfyUI's executor expects every node FUNCTION to return a tuple indexed by RETURN_TYPES slot, so downstream consumers received the bare ClipVisionModel object and any node indexing slot 0 (e.g. CLIPVisionEncode) failed. Sibling switches in this file already use the trailing comma. --- WAS_Node_Suite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WAS_Node_Suite.py b/WAS_Node_Suite.py index 4222cfc..454d623 100644 --- a/WAS_Node_Suite.py +++ b/WAS_Node_Suite.py @@ -13693,7 +13693,7 @@ class WAS_CLIP_Vision_Input_Switch: if boolean: return (clip_vision_a, ) else: - return (clip_vision_b) + return (clip_vision_b,) # TEXT INPUT SWITCH