From 1fe56610d37a04fec8f0e139fe96770afdf279a4 Mon Sep 17 00:00:00 2001 From: "Alexander G. Morano" Date: Sun, 14 Jul 2024 13:26:37 -0700 Subject: [PATCH] patch for menu breakage on null widgets in node. --- pyproject.toml | 2 +- web/core/core_cozy_menu.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 82f32c4..ac8c25a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "jovimetrix" description = "Integrates Webcam, MIDI, Spout and GLSL shader support. Animation via tick. Parameter manipulation with wave generator. Math operations with Unary and Binary support. Value conversion for all major types (int, string, list, dict, Image, Mask). Shape mask generation, image stacking and channel ops, batch splitting, merging and randomizing, load images and video from anywhere, dynamic bus routing with a single node, export support for GIPHY, save output anywhere! flatten, crop, transform; check colorblindness, make stereogram or stereoscopic images, or liner interpolate values and more." -version = "1.2.3" +version = "1.2.4" license = "MIT" dependencies = [ "aenum>=3.1.15, <4", diff --git a/web/core/core_cozy_menu.js b/web/core/core_cozy_menu.js index 2eebf11..81374df 100644 --- a/web/core/core_cozy_menu.js +++ b/web/core/core_cozy_menu.js @@ -29,6 +29,9 @@ app.registerExtension({ const getExtraMenuOptions = nodeType.prototype.getExtraMenuOptions; nodeType.prototype.getExtraMenuOptions = function (_, options) { const me = getExtraMenuOptions?.apply(this, arguments); + if (this.widgets === undefined) { + return me; + } const convertToInputArray = []; const widgets = Object.values(this.widgets); for (const [widgetName, widgetType] of matchingTypes) {