[BugFix] Fix unknown node with converted widgets (#547)

This commit is contained in:
Chenlei Hu
2025-02-18 19:32:06 -05:00
committed by GitHub
parent 026437e1a9
commit d27ced7cf3

View File

@@ -3222,8 +3222,10 @@ export class LGraphNode implements Positionable, IPinnable {
const slots: LayoutElement<INodeSlot>[] = []
for (const [i, slot] of this.inputs.entries()) {
// Unrecognized nodes (Nodes with error) has inputs but no widgets. Treat
// converted inputs as normal inputs.
/** Widget input slots are handled in {@link layoutWidgetInputSlots} */
if (isWidgetInputSlot(slot)) continue
if (this.widgets?.length && isWidgetInputSlot(slot)) continue
this.layoutSlot(slot, {
slotIndex: i,