mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -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,
|
null,
|
||||||
true // generate md5
|
true // generate md5
|
||||||
);
|
);
|
||||||
|
costume.dataFormat = storage.DataFormat.PNG;
|
||||||
costume.assetId = costume.asset.assetId;
|
costume.assetId = costume.asset.assetId;
|
||||||
costume.md5 = `${costume.assetId}.${costume.dataFormat}`;
|
costume.md5 = `${costume.assetId}.${costume.dataFormat}`;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue