mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Added TrackEntry#isEmptyAnimation.
This commit is contained in:
parent
98ec2ab278
commit
d9b882eaef
@ -51,7 +51,7 @@ import com.esotericsoftware.spine.Animation.Timeline;
|
|||||||
* <p>
|
* <p>
|
||||||
* See <a href='http://esotericsoftware.com/spine-applying-animations/'>Applying Animations</a> in the Spine Runtimes Guide. */
|
* See <a href='http://esotericsoftware.com/spine-applying-animations/'>Applying Animations</a> in the Spine Runtimes Guide. */
|
||||||
public class AnimationState {
|
public class AnimationState {
|
||||||
static private final Animation emptyAnimation = new Animation("<empty>", new Array(0), 0);
|
static final Animation emptyAnimation = new Animation("<empty>", new Array(0), 0);
|
||||||
|
|
||||||
/** 1) A previously applied timeline has set this property.<br>
|
/** 1) A previously applied timeline has set this property.<br>
|
||||||
* Result: Mix from the current pose to the timeline pose. */
|
* Result: Mix from the current pose to the timeline pose. */
|
||||||
@ -1221,6 +1221,12 @@ public class AnimationState {
|
|||||||
return reverse;
|
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 () {
|
public String toString () {
|
||||||
return animation == null ? "<none>" : animation.name;
|
return animation == null ? "<none>" : animation.name;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user