mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-26 22:30:27 -04:00
Fix costume deserialization
This commit is contained in:
parent
2181e51c38
commit
efe31f4825
1 changed files with 2 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue