mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-08 03:24:56 -04:00
Merge pull request #1830 from kchadha/fix-svg-sprite-upload
Fix sprite upload from vector image uploading at the wrong size
This commit is contained in:
commit
532e63da15
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue