Merge pull request #1868 from kchadha/fix-sb1-jpg-upload

Fix issue where uploading an sb with jpg images wasn't saving and loading
This commit is contained in:
Paul Kaplan 2018-12-21 16:08:12 -05:00 committed by GitHub
commit c26eeaede7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,7 @@ const loadBitmap_ = function (costume, runtime, rotationCenter) {
null,
true // generate md5
);
costume.dataFormat = storage.DataFormat.PNG;
costume.assetId = costume.asset.assetId;
costume.md5 = `${costume.assetId}.${costume.dataFormat}`;
};