mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 07:44:11 +00:00
Allow fast widget conversion from any node
This commit is contained in:
@@ -716,6 +716,9 @@ app.registerExtension({
|
||||
})
|
||||
},
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
nodeType.prototype.isValidWidgetLink ??=
|
||||
PrimitiveNode.prototype.isValidWidgetLink
|
||||
|
||||
// Add menu options to convert to/from widgets
|
||||
const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions
|
||||
nodeType.prototype.convertWidgetToInput = function (widget) {
|
||||
|
||||
Reference in New Issue
Block a user