mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 21:57:05 +08:00
bugfix. Custom nodes as entry point plugins has now been tested and is working
This commit is contained in:
parent
f1d597452d
commit
968595b123
6
nodes.py
6
nodes.py
@ -1929,13 +1929,13 @@ def load_custom_nodes():
|
|||||||
def load_custom_nodes_entry_points():
|
def load_custom_nodes_entry_points():
|
||||||
base_node_names = set(NODE_CLASS_MAPPINGS.keys())
|
base_node_names = set(NODE_CLASS_MAPPINGS.keys())
|
||||||
|
|
||||||
for ep in entry_points(group='comfyui.node_class_mappings'):
|
for ep in entry_points(group="comfyui.node_class_mappings"):
|
||||||
class_mapping = ep.load()
|
class_mapping = ep.load()
|
||||||
for name in class_mapping:
|
for name in class_mapping:
|
||||||
if name not in base_node_names:
|
if name not in base_node_names:
|
||||||
NODE_CLASS_MAPPINGS[name] = mapping[name]
|
NODE_CLASS_MAPPINGS[name] = class_mapping[name]
|
||||||
|
|
||||||
for ep in entry_points(group='comfyui.node_display_name_mappings'):
|
for ep in entry_points(group="comfyui.node_display_name_mappings"):
|
||||||
display_name_mapping = ep.load()
|
display_name_mapping = ep.load()
|
||||||
NODE_DISPLAY_NAME_MAPPINGS.update(display_name_mapping)
|
NODE_DISPLAY_NAME_MAPPINGS.update(display_name_mapping)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user