passthrough fix

This commit is contained in:
kijai 2024-08-08 21:04:00 +03:00
parent 0bc25cfe55
commit 855aef479f
2 changed files with 12 additions and 6 deletions

View File

@ -28,7 +28,9 @@ class ImagePass:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"required": {
},
"optional": {
"image": ("IMAGE",),
},
}
@ -39,7 +41,7 @@ class ImagePass:
Passes the image through without modifying it.
"""
def passthrough(self, image):
def passthrough(self, image=None):
return image,
class ColorMatch:

View File

@ -261,6 +261,8 @@ class CondPassThrough:
def INPUT_TYPES(s):
return {
"required": {
},
"optional": {
"positive": ("CONDITIONING", ),
"negative": ("CONDITIONING", ),
},
@ -275,14 +277,16 @@ class CondPassThrough:
workaround for Set node not allowing bypassed inputs.
"""
def passthrough(self, positive, negative):
def passthrough(self, positive=None, negative=None):
return (positive, negative,)
class ModelPassThrough:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"required": {
},
"optional": {
"model": ("MODEL", ),
},
}
@ -296,8 +300,8 @@ class ModelPassThrough:
workaround for Set node not allowing bypassed inputs.
"""
def passthrough(self, model):
return (model,)
def passthrough(self, model=None):
return (model,)
def append_helper(t, mask, c, set_area_to_bounds, strength):
n = [t[0], t[1].copy()]