diff --git a/HISTORY.md b/HISTORY.md index a4330b96..711bae69 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -31,6 +31,7 @@ * "relabel" blocks with translated drop-down choices * transforming arrayed to linked lists without loosing the last element * using "inherit" no longer un-hides the palette in presentation mode + * relabelling custom blocks with empty numerical input slots no longer fills in zeroes * Translation Updates: * Chinese, thanks, Simon! * Turkish, thanks, Turgut! @@ -38,6 +39,9 @@ * Greek, thanks, Alexandros! * German +### 2019-02-07 +* BYOB: keep empty numerical input slots in custom blocks empty when relabelling + ### 2019-02-07 * Store: tweaked loading mechanism to enable command blocks inside reporter rings * Objects: tweaked spec for settings getter diff --git a/snap.html b/snap.html index 15c8f029..415e01ac 100755 --- a/snap.html +++ b/snap.html @@ -12,7 +12,7 @@ - + diff --git a/src/byob.js b/src/byob.js index 0b5521dc..d18872a9 100644 --- a/src/byob.js +++ b/src/byob.js @@ -108,7 +108,7 @@ BooleanSlotMorph, XML_Serializer, SnapTranslator*/ // Global stuff //////////////////////////////////////////////////////// -modules.byob = '2019-February-06'; +modules.byob = '2019-February-14'; // Declarations @@ -678,7 +678,9 @@ CustomCommandBlockMorph.prototype.restoreInputs = function (oldInputs) { myself.silentReplaceInput(inp, old.fullCopy()); } else if (old instanceof InputSlotMorph && inp instanceof InputSlotMorph) { - inp.setContents(old.evaluate()); + if (!old.isEmptySlot()) { + inp.setContents(old.evaluate()); + } } else if (old instanceof BooleanSlotMorph && inp instanceof BooleanSlotMorph) { inp.setContents(old.evaluate());