No need to connect image combo

This commit is contained in:
shanexi
2024-10-27 15:23:13 +08:00
parent 4fb799112a
commit 9417b64458
+1 -13
View File
@@ -174,22 +174,10 @@ app.registerExtension({
if (nodeData.name.indexOf('ShellAgentPlugin') === -1) {
addMenuHandler(nodeType, function (_, options) {
if (this.widgets) {
let toInput = [];
for (const w of this.widgets) {
// todo: combo need to remove and convert back
// if (w.type === 'combo' && w.name === 'image') {
// toInput.push({
// content: `${w.name} <- Input Image`,
// callback: () => {
// this.convertWidgetToInput(w);
// const node = addNode("ShellAgentPluginInputImage", this, { before: true });
// const dvn = node.widgets.find(w => w.name === 'default_value')
// dvn.value = w.value;
// node.connect(0, this, 0);
// }
// })
// }
if (["customtext"].indexOf(w.type) > -1) {
toInput.push({
content: w.name,