Skip to content

Commit

Permalink
Add compile warning if player sprite sheet isn't set
Browse files Browse the repository at this point in the history
More clear message for cases like chrismaltby#447
  • Loading branch information
pau-tomas committed Aug 23, 2020
1 parent 940ca34 commit 7cbf218
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/compiler/compileData.js
Expand Up @@ -1040,6 +1040,9 @@ export const precompileSprites = async (

if(playerSpriteSheetId) {
const spriteSheet = spriteLookup[playerSpriteSheetId];
if (!spriteSheet) {
warnings(`Player Sprite Sheet isn't set. Please, make sure to select a Sprite Sheet in the Project editor.`);
}
usedSprites.push(spriteSheet);
usedSpriteLookup[playerSpriteSheetId] = spriteSheet;
}
Expand Down

0 comments on commit 7cbf218

Please sign in to comment.