fix convert nodes

This commit is contained in:
Chris
2025-02-20 12:15:31 +11:00
parent 85b78e3a21
commit be8251c6fc
+2 -2
View File
@@ -26,7 +26,7 @@ class StringToInt:
def INPUT_TYPES(s):
return {
"required": { "string" : ("STRING", {"default":"", "forceInput":True, "tooltip":"whitespace will be stripped before parsing"}), },
"required": { "default" : ("INT", {"default":0}), "tooltip":"used if the string can't be parsed as an integer"}
"required": { "default" : ("INT", {"default":0, "tooltip":"used if the string can't be parsed as an integer"}), }
}
def func(self, string:str, default:int):
@@ -42,7 +42,7 @@ class StringToFloat:
def INPUT_TYPES(s):
return {
"required": { "string" : ("STRING", {"default":"", "forceInput":True, "tooltip":"whitespace will be stripped before parsing"}), },
"required": { "default" : ("FLOAT", {"default":0.0}), "tooltip":"used if the string can't be parsed as an integer"}
"required": { "default" : ("FLOAT", {"default":0.0, "tooltip":"used if the string can't be parsed as an integer"}), },
}
def func(self, string:str, default:float):