Add md5 for default asset

This commit is contained in:
DD Liu 2019-08-22 13:10:53 -04:00
parent 9ce8c43a14
commit 1204fc68fc

View file

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