Fix issue where uploading the default vector image in place of a broken image was not correctly setting the costume's md5.

This commit is contained in:
Karishma Chadha 2018-12-20 19:29:37 -05:00
parent 9ce8c43a14
commit c38a054d4a

View file

@ -219,6 +219,7 @@ const loadCostumeFromAsset = function (costume, runtime, optVersion) {
// Use default asset if original fails to load
costume.assetId = runtime.storage.defaultAssetId.ImageVector;
costume.asset = runtime.storage.get(costume.assetId);
costume.md5 = `${costume.assetId}.${AssetType.ImageVector.runtimeFormat}`;
return loadVector_(costume, runtime);
});
}