Deprecate reroute primitive, use core primitive+reroute
This commit is contained in:
@@ -21,7 +21,7 @@ class ReroutePrimitive:
|
||||
|
||||
RETURN_TYPES = (any,)
|
||||
FUNCTION = "route"
|
||||
CATEGORY = "utils"
|
||||
CATEGORY = "__hidden__"
|
||||
|
||||
def route(self, value):
|
||||
return (value,)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user