From ef371ca902bbeb2710e740a1fff97668de9fa2ba Mon Sep 17 00:00:00 2001 From: David Leoni Date: Fri, 14 Aug 2020 21:26:30 +0200 Subject: [PATCH] custom storage #9: loading full Asset for library --- src/extensions/botch/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/extensions/botch/index.js b/src/extensions/botch/index.js index 41632224330..26be88f9064 100644 --- a/src/extensions/botch/index.js +++ b/src/extensions/botch/index.js @@ -883,6 +883,14 @@ class Scratch3Botch { for (const cost of sprite.costumes){ // NOTE 1: in costumes 'md5' field also has '.svg' appended + // this way it will have inside the precious encodeDataURI method + cost.asset = new this.storage.Asset( + cost.asset.assetType, + cost.asset.assetId, + cost.asset.dataFormat, + cost.asset.data, + false + ); cost.md5ext = cost.md5; // NOTE 2: in preloaded data there is no md5, only md5ext delete cost.md5;