Skip to content

Commit

Permalink
[BugFix] Fix unknown node with converted widgets (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Feb 19, 2025
1 parent 026437e commit d27ced7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LGraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d27ced7

Please sign in to comment.