From c68473219936db173f5166849c7c754cba50828c Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Thu, 31 Oct 2024 03:28:08 +1100 Subject: [PATCH] Allow fast widget conversion from any node --- src/extensions/core/widgetInputs.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/extensions/core/widgetInputs.ts b/src/extensions/core/widgetInputs.ts index 2d07762c0..3459db4a7 100644 --- a/src/extensions/core/widgetInputs.ts +++ b/src/extensions/core/widgetInputs.ts @@ -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) {