mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-12 05:21:15 -04:00
Merge pull request #1126 from fsih/fixQuirksOnLoadCostume
Run quirks mode fixes on costumes loaded from sb2s
This commit is contained in:
commit
5c003641f9
4 changed files with 40 additions and 5 deletions
src/serialization
|
@ -360,7 +360,7 @@ const parseScratchObject = function (object, runtime, extensions, topLevel, zip)
|
|||
// the file name of the costume should be the baseLayerID followed by the file ext
|
||||
const assetFileName = `${costumeSource.baseLayerID}.${ext}`;
|
||||
costumePromises.push(deserializeCostume(costume, runtime, zip, assetFileName)
|
||||
.then(() => loadCostume(costume.md5, costume, runtime)));
|
||||
.then(() => loadCostume(costume.md5, costume, runtime, 2 /* optVersion */)));
|
||||
}
|
||||
}
|
||||
// Sounds from JSON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue