Skip to content

Commit

Permalink
Patch WAS_Boolean to output all common types
Browse files Browse the repository at this point in the history
  • Loading branch information
WAS-PlaiLabs committed May 15, 2024
1 parent 4ae6f7c commit 7fb0766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WAS_Node_Suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -12270,7 +12270,7 @@ def __init__(self):
def INPUT_TYPES(cls):
return {
"required": {
"boolean": ("FLOAT", {"default":1, "min":0, "max":1, "step":1}),
"boolean": ("FLOAT", {"default": 1, "min": 0.0, "max": 1.0, "step": 0.01}),
}
}

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

CATEGORY = "WAS Suite/Logic"

def return_boolean(self, boolean=True):
def return_boolean(self, boolean=1.0):
boolean_bool = int(round(boolean))
int_bool = int(round(boolean))
return (boolean_bool, int_bool, int_bool, boolean)
Expand Down

0 comments on commit 7fb0766

Please sign in to comment.