mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-04 20:53:57 +00:00
Add an error handler to DebugBoundingState.
This commit is contained in:
parent
4e0c7cea7f
commit
5ce9e98b15
|
@ -532,6 +532,11 @@ class DebugBoundingState extends FlxState
|
||||||
// swagChar.debugMode = true;
|
// swagChar.debugMode = true;
|
||||||
offsetView.add(swagChar);
|
offsetView.add(swagChar);
|
||||||
|
|
||||||
|
if (swagChar == null || swagChar.frames == null)
|
||||||
|
{
|
||||||
|
trace('ERROR: Failed to load character ${char}!');
|
||||||
|
}
|
||||||
|
|
||||||
generateOutlines(swagChar.frames.frames);
|
generateOutlines(swagChar.frames.frames);
|
||||||
bf.pixels = swagChar.pixels;
|
bf.pixels = swagChar.pixels;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue