math input fix
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user