Skip to content

Commit

Permalink
patch for menu breakage on null widgets in node.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amorano committed Jul 14, 2024
1 parent 7075cf5 commit 1fe5661
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 3 additions & 0 deletions web/core/core_cozy_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1fe5661

Please sign in to comment.