Call extension.on_load() in load_custom_node function, arttempt at using the public interface's node_replacement (not working currently, pushing to share)

This commit is contained in:
Jedrzej Kosinski
2026-02-14 19:51:02 -08:00
parent 07d1ee2ca9
commit 5f409b6cd6
3 changed files with 29 additions and 32 deletions

View File

@@ -1,12 +1,6 @@
from __future__ import annotations
from typing import Any, TypedDict
from server import PromptServer
def register(node_replace: NodeReplace):
"""Register a node replacement mapping."""
PromptServer.instance.node_replace_manager.register(node_replace)
class InputMapOldId(TypedDict):