From e239cf06b93e7c5de555ad2b26d072769e5ef5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Sat, 12 Oct 2024 12:59:54 +0200 Subject: [PATCH] fixed #3403 editing a primitive and changing a default input --- HISTORY.md | 2 ++ snap.html | 2 +- src/objects.js | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 384470d69..27dd3cd15 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,9 +3,11 @@ ## in development: * **Notable Fixes:** * only bind rings that replace list items to the list as environment if they are referred to by a non-numerical index (OOP 2.0) + * fixed #3403 editing a primitive and changing a default input ### 2024-09-12 * threads: only bind rings replaced in a list to the list as environment if they are referred to by a non-numerical index (OOP 2.0) +* objects: fixed #3403 editing a primitive and changing a default input ## 10.1.1: * **Notable Fixes:** diff --git a/snap.html b/snap.html index 555559b62..8985c534a 100755 --- a/snap.html +++ b/snap.html @@ -18,7 +18,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 131535040..e7741616b 100644 --- a/src/objects.js +++ b/src/objects.js @@ -96,7 +96,7 @@ CustomBlockDefinition, exportEmbroidery*/ /*jshint esversion: 11*/ -modules.objects = '2024-October-11'; +modules.objects = '2024-October-12'; var SpriteMorph; var StageMorph; @@ -3376,6 +3376,7 @@ SpriteMorph.prototype.blockForSelector = function (selector, setDefaults) { if (setDefaults) { block.refreshDefaults(info.definition); } + return block; } else { block = info.type === 'command' ? new CommandBlockMorph() : info.type === 'hat' ? new HatBlockMorph()