Add direction_in optional input for chaining direction outputs; clean up unused code
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
import { app } from "../../../scripts/app.js";
|
||||
|
||||
function getAllNodesOfType(type) {
|
||||
const nodes = [];
|
||||
for (const node of app.graph._nodes) {
|
||||
if (node.type === type) nodes.push(node);
|
||||
}
|
||||
return nodes;
|
||||
}
|
||||
|
||||
function filterChildDirs(allDirs, parentPrefix) {
|
||||
const prefixNorm = parentPrefix.replace(/\/$/, "").toLowerCase();
|
||||
const results = [];
|
||||
@@ -191,6 +183,17 @@ app.registerExtension({
|
||||
origOnRemoved();
|
||||
listEl.remove();
|
||||
};
|
||||
|
||||
const imageWidget = this.widgets?.find((w) => w.name === "image");
|
||||
if (imageWidget) {
|
||||
const origCallback = imageWidget.callback ? imageWidget.callback.bind(imageWidget) : () => {};
|
||||
imageWidget.callback = (value) => {
|
||||
origCallback(value);
|
||||
if (imageWidget.element) {
|
||||
imageWidget.element.style.opacity = "1";
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user