Merge pull request #1864 from kchadha/fix-default-vector-fix

Fix issue with uploading default vector image
This commit is contained in:
Karishma Chadha 2018-12-20 21:11:24 -05:00 committed by GitHub
commit cb9a8f99eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
});
}