Fix js nodes not having filter applied.
The workaround for filter being overwritten by applying to late for refreshComboInNodes was to apply the filter with beforeRegisterNodeDef, but that doesn't apply no js nodes inverted the issue of nodes being hidden. A setup call has been added to ensure js nodes have the default filter applied
This commit is contained in:
@@ -41,6 +41,14 @@ const deprecate_nodes = {
|
||||
async init() {
|
||||
app.graph.filter = app.graph.filter || "shown"
|
||||
},
|
||||
async setup() {
|
||||
for (let k in LiteGraph.registered_node_types) {
|
||||
let nodeType = LiteGraph.registered_node_types[k]
|
||||
if (!nodeType.filter) {
|
||||
nodeType.filter = app.graph.filter
|
||||
}
|
||||
}
|
||||
},
|
||||
async getCustomWidgets() {
|
||||
return {
|
||||
ADEWARN(node, inputName, inputData) {
|
||||
|
||||
Reference in New Issue
Block a user