math input fix

This commit is contained in:
SayanoAI
2024-09-30 11:41:40 -04:00
parent 61dbf9d59a
commit 3785ac394f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -259,8 +259,8 @@ class SimpleMathNode:
def INPUT_TYPES(s):
return {
"optional": {
"n1": (MultipleTypeProxy("INT,FLOAT"), { "default": None, "step": 0.1 }),
"n2": (MultipleTypeProxy("INT,FLOAT"), { "default": None, "step": 0.1 }),
"n1": (MultipleTypeProxy("*"), { "default": None, "step": 0.1 }),
"n2": (MultipleTypeProxy("*"), { "default": None, "step": 0.1 }),
"round_up": ("BOOLEAN", {"default": False})
},
"required": {
+1 -1
View File
@@ -35,7 +35,7 @@ class MultipleTypeProxy(str):
if o in self: return True
for s in self.split(","):
if s in other: return True
return False
return str(self)=="*"
def __ne__(self, other):
return not self.__eq__(other)