diff --git a/HISTORY.md b/HISTORY.md index cdf1cd79..8ba8c918 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -7,11 +7,13 @@ * **Notable Fixes:** * setting a clone's rotation coordinates shadows its inherited costumes * preserve embedded inputs when JOINing a nested expression with an empty list + * improved loading custom block categories * **Documentation Updates:** * **Translation Updates:** ### 2021-12-20 * blocks, threads: preserve embedded inputs when JOINing a nested expression with an empty list +* objects: improved loading custom block categories ### 2021-12-18 * new dev version diff --git a/snap.html b/snap.html index eb3d85a1..c61d6011 100755 --- a/snap.html +++ b/snap.html @@ -18,7 +18,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 1e5cdb72..bbd3bb09 100644 --- a/src/objects.js +++ b/src/objects.js @@ -87,7 +87,7 @@ BlockVisibilityDialogMorph*/ /*jshint esversion: 6*/ -modules.objects = '2021-December-18'; +modules.objects = '2021-December-20'; var SpriteMorph; var StageMorph; @@ -172,7 +172,9 @@ SpriteMorph.prototype.allCategories = function () { }; SpriteMorph.prototype.blockColorFor = function (category) { - return this.blockColor[category] || this.customCategories.get(category); + return this.blockColor[category] || + this.customCategories.get(category) || + this.blockColor.other; }; SpriteMorph.prototype.paletteColor = new Color(55, 55, 55);