mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Update src/import/load-costume.js
Thanks! Co-Authored-By: Karishma Chadha <kchadha@media.mit.edu>
This commit is contained in:
parent
82e0f71643
commit
cbb668a7ec
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ const loadCostumeFromAsset = function (costume, runtime, optVersion) {
|
|||
if (costume.asset.assetType.runtimeFormat === AssetType.ImageVector.runtimeFormat) {
|
||||
return loadVector_(costume, runtime, rotationCenter, optVersion)
|
||||
.catch(error => {
|
||||
log.warn(`${error.name}: ${error.message}`);
|
||||
log.warn(`Error loading vector image: ${error.name}: ${error.message}`);
|
||||
// Use default asset if original fails to load
|
||||
costume.assetId = runtime.storage.defaultAssetId.ImageVector;
|
||||
costume.asset = runtime.storage.get(costume.assetId);
|
||||
|
|
Loading…
Reference in a new issue