Fix: set output label alongside name for LiteGraph rendering
LiteGraph renders slot.label over slot.name — we were updating name but the display uses label. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -146,7 +146,7 @@ app.registerExtension({
|
|||||||
newOutputs.push(slot);
|
newOutputs.push(slot);
|
||||||
delete oldSlots[key];
|
delete oldSlots[key];
|
||||||
} else {
|
} else {
|
||||||
newOutputs.push({ name: key, type: type, links: null });
|
newOutputs.push({ name: key, label: key, type: type, links: null });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,6 +259,7 @@ app.registerExtension({
|
|||||||
const slotIdx = i + 1;
|
const slotIdx = i + 1;
|
||||||
if (slotIdx < this.outputs.length) {
|
if (slotIdx < this.outputs.length) {
|
||||||
this.outputs[slotIdx].name = keys[i].trim();
|
this.outputs[slotIdx].name = keys[i].trim();
|
||||||
|
this.outputs[slotIdx].label = keys[i].trim();
|
||||||
if (types[i]) this.outputs[slotIdx].type = types[i];
|
if (types[i]) this.outputs[slotIdx].type = types[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user