From 05463a87f5ad23b4e4c562b821185bb9e2c1c8bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Sat, 19 Oct 2024 14:01:28 +0200 Subject: [PATCH] fixed a BlockSymbolMorph getRenderColor() null case glitch --- HISTORY.md | 3 +++ snap.html | 2 +- src/blocks.js | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 7f60dd46a..20d552305 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,9 @@ ## in development: +### 2024-09-19 +* objects: fixed a BlockSymbolMorph getRenderColor() null case glitch + ## 10.1.6: * **Notable Fixes:** * fixed #3409 - do not remove custom blocks referenced in customized primitives as "unused" diff --git a/snap.html b/snap.html index b301e7aac..abb28b3d6 100755 --- a/snap.html +++ b/snap.html @@ -16,7 +16,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index 42aca3d15..c88e31db7 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -161,7 +161,7 @@ SVG_Costume, embedMetadataPNG, ThreadManager, snapEquals, display*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2024-October-11'; +modules.blocks = '2024-October-19'; var SyntaxElementMorph; var BlockMorph; @@ -2836,7 +2836,7 @@ function BlockSymbolMorph(name, size, color, shadowOffset, shadowColor) { } BlockSymbolMorph.prototype.getRenderColor = function () { - var block = this.parentThatIsA(BlockMorph); + var block = this.parentThatIsA(BlockMorph) || this; if (IDE_Morph.prototype.isBright) { if (this.isFading) { return this.color.mixed(block.alpha, WHITE);