Fix costume deserialization

This commit is contained in:
Ray Schamp committed 2017-05-04 12:41:54 -04:00
1 parent 2181e51c38
commit efe31f4825
1 file changed
+2 -1
+2 -1
View File
@@ -75,7 +75,8 @@ const parseScratchObject = function (object, runtime) {
rotationCenterX: costumeSource.rotationCenterX,
rotationCenterY: costumeSource.rotationCenterY
};
return loadCostume(costumeSource.md5ext, costume, runtime);
const costumeMd5 = `${costumeSource.assetId}.${costumeSource.assetType.runtimeFormat}`;
return loadCostume(costumeMd5, costume, runtime);
});
// Sounds from JSON
const soundPromises = (object.sounds || []).map(soundSource => {