1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-03 20:23:46 +00:00

Add an error handler to DebugBoundingState.

This commit is contained in:
EliteMasterEric 2024-05-02 00:32:40 -04:00
parent 4e0c7cea7f
commit 5ce9e98b15

View file

@ -532,6 +532,11 @@ class DebugBoundingState extends FlxState
// swagChar.debugMode = true;
offsetView.add(swagChar);
if (swagChar == null || swagChar.frames == null)
{
trace('ERROR: Failed to load character ${char}!');
}
generateOutlines(swagChar.frames.frames);
bf.pixels = swagChar.pixels;