Fix unset legacySprites field in media.json breaks running

This commit is contained in:
Yueyu 2021-12-09 17:29:40 +08:00
parent 34582f729e
commit a660eb597b

View file

@ -45,7 +45,7 @@ export default class MediaLib {
path = parsedResult.path; path = parsedResult.path;
samples = parsedResult.samples; samples = parsedResult.samples;
sprites = parsedResult.sprites; sprites = parsedResult.sprites;
legacySprites = parsedResult.legacySprites; legacySprites = parsedResult.legacySprites || [];
backgrounds = parsedResult.backgrounds; backgrounds = parsedResult.backgrounds;
sounds = parsedResult.sounds; sounds = parsedResult.sounds;