Skip to content

Commit d58b8fe

Browse files
AustinMrozDrJKL
authored andcommitted
Fix nesting, remove namespacing
1 parent 1e47ddc commit d58b8fe

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/extensions/core/dynamicCombo.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function COMFY_DYNAMICCOMBO_V3(
3939
(widget) => widget.name === name
4040
)
4141
if (widgetIndex === -1) continue
42-
node.widgets[widgetIndex].callback?.(undefined)
42+
node.widgets[widgetIndex].value = undefined
4343
node.widgets.splice(widgetIndex, 1)
4444
}
4545
currentDynamicNames = []
@@ -67,19 +67,11 @@ function COMFY_DYNAMICCOMBO_V3(
6767
isOptional
6868
})
6969
)
70-
currentDynamicNames.push(`${widget.name}.${name}`)
70+
currentDynamicNames.push(name)
7171
}
7272

7373
const addedWidgets = node.widgets.splice(startingLength)
74-
for (const addedWidget of addedWidgets) {
75-
addedWidget.name = `${widget.name}.${addedWidget.name}`
76-
}
7774
node.widgets.splice(insertionPoint, 0, ...addedWidgets)
78-
for (const input of node.inputs.slice(startingInputLength)) {
79-
input.name = `${widget.name}.${input.name}`
80-
if (input.widget)
81-
input.widget.name = `${widget.name}.${input.widget.name}`
82-
}
8375
if (inputInsertionPoint === 0) {
8476
if (
8577
addedWidgets.length === 0 &&

0 commit comments

Comments
 (0)