Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions modules/impact/logics.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def INPUT_TYPES(cls):
return {
"required": {
"cond": ("BOOLEAN",),
"tt_value": (any_typ,),
"ff_value": (any_typ,),
"tt_value": (any_typ,{"lazy": True}),
"ff_value": (any_typ,{"lazy": True}),
},
}

Expand All @@ -76,7 +76,13 @@ def INPUT_TYPES(cls):

RETURN_TYPES = (any_typ, )

def doit(self, cond, tt_value, ff_value):
def check_lazy_status(self, cond, tt_value=None, ff_value=None):
if cond and tt_value is None:
return ["tt_value"]
if not cond and ff_value is None:
return ["ff_value"]

def doit(self, cond, tt_value=None, ff_value=None):
if cond:
return (tt_value,)
else:
Expand Down