Deprecate reroute primitive, use core primitive+reroute

This commit is contained in:
pythongosssss
2024-07-14 09:49:10 +01:00
parent aad8974768
commit c3075700b5
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class ReroutePrimitive:
RETURN_TYPES = (any,)
FUNCTION = "route"
CATEGORY = "utils"
CATEGORY = "__hidden__"
def route(self, value):
return (value,)
+6
View File
@@ -21,6 +21,12 @@ app.registerExtension({
return r;
};
// Hide this node as it is no longer supported
const getNodeTypesCategories = LiteGraph.getNodeTypesCategories;
LiteGraph.getNodeTypesCategories = function() {
return getNodeTypesCategories.apply(this, arguments).filter(c => !c.startsWith("__hidden__"));
}
const graphToPrompt = app.graphToPrompt;
app.graphToPrompt = async function () {
const res = await graphToPrompt.apply(this, arguments);