mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 07:22:33 -05:00
Ensure we are serializing file extensions for costumes and sounds as lower case.
This commit is contained in:
parent
585a46f334
commit
6f3c84bf77
1 changed files with 2 additions and 2 deletions
|
@ -306,7 +306,7 @@ const serializeCostume = function (costume) {
|
||||||
// but that change should be made carefully since it is very
|
// but that change should be made carefully since it is very
|
||||||
// pervasive
|
// pervasive
|
||||||
obj.md5ext = costume.md5;
|
obj.md5ext = costume.md5;
|
||||||
obj.dataFormat = costume.dataFormat;
|
obj.dataFormat = costume.dataFormat.toLowerCase();
|
||||||
obj.rotationCenterX = costume.rotationCenterX;
|
obj.rotationCenterX = costume.rotationCenterX;
|
||||||
obj.rotationCenterY = costume.rotationCenterY;
|
obj.rotationCenterY = costume.rotationCenterY;
|
||||||
return obj;
|
return obj;
|
||||||
|
@ -321,7 +321,7 @@ const serializeSound = function (sound) {
|
||||||
const obj = Object.create(null);
|
const obj = Object.create(null);
|
||||||
obj.assetId = sound.assetId;
|
obj.assetId = sound.assetId;
|
||||||
obj.name = sound.name;
|
obj.name = sound.name;
|
||||||
obj.dataFormat = sound.dataFormat;
|
obj.dataFormat = sound.dataFormat.toLowerCase();
|
||||||
obj.format = sound.format;
|
obj.format = sound.format;
|
||||||
obj.rate = sound.rate;
|
obj.rate = sound.rate;
|
||||||
obj.sampleCount = sound.sampleCount;
|
obj.sampleCount = sound.sampleCount;
|
||||||
|
|
Loading…
Reference in a new issue