mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 22:42:27 -05:00
Add md5 for default asset
This commit is contained in:
parent
9ce8c43a14
commit
1204fc68fc
1 changed files with 1 additions and 0 deletions
|
@ -219,6 +219,7 @@ const loadCostumeFromAsset = function (costume, runtime, optVersion) {
|
||||||
// Use default asset if original fails to load
|
// Use default asset if original fails to load
|
||||||
costume.assetId = runtime.storage.defaultAssetId.ImageVector;
|
costume.assetId = runtime.storage.defaultAssetId.ImageVector;
|
||||||
costume.asset = runtime.storage.get(costume.assetId);
|
costume.asset = runtime.storage.get(costume.assetId);
|
||||||
|
costume.md5 = `${costume.assetId}.${AssetType.ImageVector.runtimeFormat}`;
|
||||||
return loadVector_(costume, runtime);
|
return loadVector_(costume, runtime);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue