From efe31f4825e54530cec82509bf369565ef2073db Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Thu, 4 May 2017 12:41:54 -0400 Subject: [PATCH] Fix costume deserialization --- src/serialization/sb3.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serialization/sb3.js b/src/serialization/sb3.js index b072be19..4477a7b5 100644 --- a/src/serialization/sb3.js +++ b/src/serialization/sb3.js @@ -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 => {