Merge pull request from cwillisf/load-jpeg-backdrops

Specify dataFormat when loading asset for import
This commit is contained in:
Ray Schamp 2017-06-02 09:06:37 -04:00 committed by GitHub
commit ecf535f4c3
8 changed files with 45 additions and 10 deletions
src/serialization

View file

@ -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