mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-01-08 13:41:59 -05:00
Support 3.0 library syntax when fetching assets
Fixes https://github.com/LLK/scratch-desktop/issues/92
This commit is contained in:
parent
96953c4acd
commit
aa3c1abbc0
1 changed files with 5 additions and 1 deletions
|
@ -23,10 +23,14 @@ const collectSimple = function (library, dest, debugLabel = 'Item') {
|
|||
++md5Count;
|
||||
dest.add(item.md5);
|
||||
}
|
||||
if (item.baseLayerMD5) {
|
||||
if (item.baseLayerMD5) { // 2.0 library syntax for costumes
|
||||
++md5Count;
|
||||
dest.add(item.baseLayerMD5);
|
||||
}
|
||||
if (item.md5ext) { // 3.0 library syntax for costumes
|
||||
++md5Count;
|
||||
dest.add(item.md5ext);
|
||||
}
|
||||
if (md5Count < 1) {
|
||||
console.warn(`${debugLabel} has no MD5 property:\n${describe(item)}`);
|
||||
} else if (md5Count > 1) {
|
||||
|
|
Loading…
Reference in a new issue