mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
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:
commit
c26eeaede7
1 changed files with 1 additions and 0 deletions
|
@ -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}`;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue