comfy update broke something... fix #70
This commit is contained in:
@@ -11,8 +11,8 @@ class SimpleMath:
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"optional": {
|
||||
"a": ("INT,FLOAT", { "default": 0.0, "step": 0.1 }),
|
||||
"b": ("INT,FLOAT", { "default": 0.0, "step": 0.1 }),
|
||||
"a": (any, { "default": 0.0 }),
|
||||
"b": (any, { "default": 0.0 }),
|
||||
},
|
||||
"required": {
|
||||
"value": ("STRING", { "multiline": False, "default": "" }),
|
||||
@@ -27,6 +27,9 @@ class SimpleMath:
|
||||
import ast
|
||||
import operator as op
|
||||
|
||||
a = float(a)
|
||||
b = float(b)
|
||||
|
||||
operators = {
|
||||
ast.Add: op.add,
|
||||
ast.Sub: op.sub,
|
||||
|
||||
Reference in New Issue
Block a user