Fix drag new link from reroute to widget (#3214)

This commit is contained in:
filtered
2025-03-24 13:29:51 +11:00
committed by GitHub
parent 27c252f74a
commit f8a2c90138

View File

@@ -532,7 +532,7 @@ export function convertToInput(
node: LGraphNode,
widget: IWidget,
config: InputSpec
) {
): INodeInputSlot {
hideWidget(node, widget)
const { type } = getWidgetType(config)
@@ -690,11 +690,7 @@ app.registerExtension({
if (!inputSpec) return
const input = convertToInput(node, widget, inputSpec)
if (!input) return
const originNode = link.node
originNode.connectSlots(link.fromSlot, node, input, undefined)
link.node.connectSlots(link.fromSlot, node, input, link.fromReroute?.id)
}
)
},