From 8eb245bea5b2e0b6520e468cdc76176c3f004587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Wed, 7 Aug 2024 12:23:45 +0200 Subject: [PATCH] exclude "reportHyperZip" from collected block dependencies for libraries etc. --- HISTORY.md | 1 + snap.html | 2 +- src/objects.js | 8 +++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index f125831d0..41d56a9c9 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -10,6 +10,7 @@ ### 2024-08-07 * embroidery library: fixed customized "GO TO" primitive for selected target sprite, (partially) enables nested sprites trails embroidery +* objects: exclude "reportHyperZip" from collected block dependencies for libraries etc. ### 2024-08-06 * morphic: fixed occasional buffer overflow issue for code embedded in script pics, thanks, Dariusz! diff --git a/snap.html b/snap.html index 39058710f..04b51be3e 100755 --- a/snap.html +++ b/snap.html @@ -18,7 +18,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 804110350..1645192de 100644 --- a/src/objects.js +++ b/src/objects.js @@ -96,7 +96,7 @@ CustomBlockDefinition, exportEmbroidery*/ /*jshint esversion: 11*/ -modules.objects = '2024-August-05'; +modules.objects = '2024-August-07'; var SpriteMorph; var StageMorph; @@ -2285,7 +2285,8 @@ SpriteMorph.prototype.initHyperZip = function () { SpriteMorph.prototype.hasCustomizedPrimitives = function () { return Object.keys(this.blocks).some(selector => - this.blocks[selector].definition instanceof CustomBlockDefinition + selector !== 'reportHyperZip' && + this.blocks[selector].definition instanceof CustomBlockDefinition ); }; @@ -2493,7 +2494,8 @@ SpriteMorph.prototype.toggleAllCustomizedPrimitives = function (stage, choice) { SpriteMorph.prototype.bootstrappedBlocks = function () { var boot = []; Object.keys(SpriteMorph.prototype.blocks).forEach(each => { - if (this.blocks[each].definition instanceof CustomBlockDefinition) { + if (each !== 'reportHyperZip' && + this.blocks[each].definition instanceof CustomBlockDefinition) { boot.push(this.blocks[each].definition); } });