Merge pull request from kchadha/fix-svg-sprite-upload

Fix sprite upload from vector image uploading at the wrong size
This commit is contained in:
Karishma Chadha 2018-12-10 10:40:19 -05:00 committed by GitHub
commit 532e63da15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,7 +211,7 @@ const loadCostumeFromAsset = function (costume, runtime, optVersion) {
typeof costume.rotationCenterY === 'number' && !isNaN(costume.rotationCenterY)) {
rotationCenter = [costume.rotationCenterX, costume.rotationCenterY];
}
if (costume.asset.assetType === AssetType.ImageVector) {
if (costume.asset.assetType.runtimeFormat === AssetType.ImageVector.runtimeFormat) {
return loadVector_(costume, runtime, rotationCenter, optVersion);
}
return loadBitmap_(costume, runtime, rotationCenter, optVersion);