Fix for anim family with differing number of directions crashing on Layer.load(int)

This commit is contained in:
Collin Smith 2019-02-21 18:26:24 -08:00
parent 8bbaec639b
commit f17278b87b

View File

@ -328,10 +328,7 @@ public class Entity {
if (DEBUG_COF) Gdx.app.debug(TAG, "" + cof);
boolean changed = updateAnimation(cof);
if (changed) {
dirty = Dirty.ALL;
animation.setDirection(getDirection());
}
if (changed) dirty = Dirty.ALL;
if (DEBUG_DIRTY) Gdx.app.debug(TAG, "dirty layers: " + Dirty.toString(dirty));
for (int l = 0; l < cof.getNumLayers(); l++) {