From 027e0bf1e1703dc15928efc12947dd537a42a3f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Mon, 7 Feb 2022 09:08:01 +0100 Subject: [PATCH] fixed static "costume" type for stage backgrounds --- HISTORY.md | 2 ++ snap.html | 2 +- src/objects.js | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 3c9a895a..c5d7a28b 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,11 +6,13 @@ * **Notable Changes:** * **Notable Fixes:** * JSON encoding for nested lists + * static "costume" type for stage backgrounds * **Documentation Updates:** * **Translation Updates:** ### 2022-02-07 * lists: fixed JSON encoding for nested lists +* objects: fixed static "costume" type for stage backgrounds ### 2022-02-04 * new dev version diff --git a/snap.html b/snap.html index 7c121efb..a90250e3 100755 --- a/snap.html +++ b/snap.html @@ -18,7 +18,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 905341dc..cfd953ee 100644 --- a/src/objects.js +++ b/src/objects.js @@ -87,7 +87,7 @@ BlockVisibilityDialogMorph, CostumeIconMorph, SoundIconMorph*/ /*jshint esversion: 6*/ -modules.objects = '2022-January-28'; +modules.objects = '2022-February-07'; var SpriteMorph; var StageMorph; @@ -1987,6 +1987,7 @@ SpriteMorph.prototype.fullCopy = function (forClone) { } }); c.costumes = new List(arr); + c.costumes.type = 'costume'; arr = []; this.sounds.asArray().forEach(sound => { var snd = forClone ? sound : sound.copy(); @@ -7934,6 +7935,7 @@ StageMorph.prototype.init = function (globals) { this.customBlocks = []; this.globalBlocks = []; this.costumes = new List(); + this.costumes.type = 'costume'; this.costume = null; this.sounds = new List(); this.version = Date.now(); // for observers