Fix missing FUNCTION in Better String Node

While it works in some cases, other cases need this little stubby thing here.

This will stop errors when feeding into nodes such as Save Image.
This commit is contained in:
Hayden Reeve
2024-02-05 23:48:29 +08:00
parent 315afde1f0
commit 80b4a86678
+6 -5
View File
@@ -7,17 +7,18 @@ class BetterString:
def INPUT_TYPES(s):
return {
"required": {
"string_field": ("STRING", {
"multiline": True,
"default": ""
}),
"string": ("STRING", {"multiline": True}),
},
}
FUNCTION = "event"
RETURN_TYPES = ("STRING",)
CATEGORY = "Better Things 💡"
def event(self, string):
return (string, )
NODE_CLASS_MAPPINGS = {
"BetterString": BetterString
@@ -25,4 +26,4 @@ NODE_CLASS_MAPPINGS = {
NODE_DISPLAY_NAME_MAPPINGS = {
"BetterString": "Better String"
}
}