From f17278b87bdca76e2d4b8f9c8e6c98d73515a97a Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Thu, 21 Feb 2019 18:26:24 -0800 Subject: [PATCH] Fix for anim family with differing number of directions crashing on Layer.load(int) --- core/src/gdx/diablo/entity/Entity.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/gdx/diablo/entity/Entity.java b/core/src/gdx/diablo/entity/Entity.java index 67a41f2d..338db714 100644 --- a/core/src/gdx/diablo/entity/Entity.java +++ b/core/src/gdx/diablo/entity/Entity.java @@ -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++) {