fixes
This commit is contained in:
@@ -5,13 +5,17 @@ A collection of essential custom nodes for ComfyUI
|
||||
|
||||
from .nodes.text_processing import NODE_CLASS_MAPPINGS as TEXT_NODES
|
||||
from .nodes.text_processing import NODE_DISPLAY_NAME_MAPPINGS as TEXT_DISPLAY_NAMES
|
||||
from .nodes.utilities import UTILITY_NODE_CLASS_MAPPINGS as UTILITY_NODES
|
||||
from .nodes.utilities import UTILITY_NODE_DISPLAY_NAME_MAPPINGS as UTILITY_DISPLAY_NAMES
|
||||
|
||||
# Combine all node mappings
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_CLASS_MAPPINGS.update(TEXT_NODES)
|
||||
NODE_CLASS_MAPPINGS.update(UTILITY_NODES)
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(TEXT_DISPLAY_NAMES)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(UTILITY_DISPLAY_NAMES)
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5
-3
@@ -12,7 +12,8 @@ class DebugPrint:
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("*",),
|
||||
# Specify common types explicitly instead of using wildcard
|
||||
"value": ("STRING", {"forceInput": True}),
|
||||
},
|
||||
"optional": {
|
||||
"label": ("STRING", {
|
||||
@@ -22,7 +23,8 @@ class DebugPrint:
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("*",)
|
||||
# Match the input type exactly
|
||||
RETURN_TYPES = ("STRING",)
|
||||
RETURN_NAMES = ("passthrough",)
|
||||
|
||||
FUNCTION = "debug_print"
|
||||
@@ -39,7 +41,7 @@ class DebugPrint:
|
||||
Returns:
|
||||
The same value (passthrough)
|
||||
"""
|
||||
print(f"[{label}] {type(value).__name__}: {value}")
|
||||
print(f"[{label}] {value}")
|
||||
return (value,)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user