Ensure we are serializing file extensions for costumes and sounds as lower case.

This commit is contained in:
Karishma Chadha 2018-04-10 17:01:31 -04:00
parent 585a46f334
commit 6f3c84bf77

View file

@ -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;