diff --git a/custom_nodes/utility_nodes.py b/custom_nodes/utility_nodes.py index 426f3e7..3399de0 100644 --- a/custom_nodes/utility_nodes.py +++ b/custom_nodes/utility_nodes.py @@ -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": { diff --git a/custom_nodes/utils.py b/custom_nodes/utils.py index e660761..8722796 100644 --- a/custom_nodes/utils.py +++ b/custom_nodes/utils.py @@ -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)