Atlases should no longer crash...
This commit is contained in:
@@ -108,7 +108,8 @@ class CharacterAnimsWindow extends UIButtonList<CharacterAnimButton> {
|
||||
|
||||
if (newButton.valid) {
|
||||
XMLUtil.addAnimToSprite(character, animData);
|
||||
buildAnimDisplay(animData.name, character.animation._animations[animData.name]);
|
||||
if (character.animation._animations[animData.name] != null)
|
||||
buildAnimDisplay(animData.name, character.animation._animations[animData.name]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,10 +23,9 @@ class CharacterGhost extends Character {
|
||||
}
|
||||
|
||||
frame = frames.frames[animation.frameIndex];
|
||||
setAnimOffset(animation.name);
|
||||
alpha = 1; color = 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
setAnimOffset(animation.name);
|
||||
alpha = 1; color = 0xFFFFFFFF;
|
||||
ghostDraw = false;
|
||||
|
||||
super.draw();
|
||||
|
||||
Reference in New Issue
Block a user