Skip to content

Commit

Permalink
Merge pull request #1868 from kchadha/fix-sb1-jpg-upload
Browse files Browse the repository at this point in the history
Fix issue where uploading an sb with jpg images wasn't saving and loading
  • Loading branch information
paulkaplan committed Dec 21, 2018
2 parents 75bd89d + 23298bd commit c26eeae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/import/load-costume.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
};
Expand Down

0 comments on commit c26eeae

Please sign in to comment.