mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-11 05:24:05 -04:00
Merge pull request #579 from cwillisf/load-jpeg-backdrops
Specify dataFormat when loading asset for import
This commit is contained in:
commit
ecf535f4c3
8 changed files with 45 additions and 10 deletions
src/serialization
|
@ -75,7 +75,7 @@ const parseScratchObject = function (object, runtime) {
|
|||
rotationCenterX: costumeSource.rotationCenterX,
|
||||
rotationCenterY: costumeSource.rotationCenterY
|
||||
};
|
||||
const costumeMd5 = `${costumeSource.assetId}.${costumeSource.assetType.runtimeFormat}`;
|
||||
const costumeMd5 = `${costumeSource.assetId}.${costumeSource.dataFormat}`;
|
||||
return loadCostume(costumeMd5, costume, runtime);
|
||||
});
|
||||
// Sounds from JSON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue