diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java index b53b551cd..121b12976 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java @@ -51,7 +51,7 @@ import com.esotericsoftware.spine.Animation.Timeline; *
* See Applying Animations in the Spine Runtimes Guide. */
public class AnimationState {
- static private final Animation emptyAnimation = new Animation("
* Result: Mix from the current pose to the timeline pose. */
@@ -1221,6 +1221,12 @@ public class AnimationState {
return reverse;
}
+ /** Returns true if this entry is for the empty animation. See {@link AnimationState#setEmptyAnimation(int, float)},
+ * {@link AnimationState#addEmptyAnimation(int, float, float)}, and {@link AnimationState#setEmptyAnimations(float)}. */
+ public boolean isEmptyAnimation () {
+ return animation == emptyAnimation;
+ }
+
public String toString () {
return animation == null ? "