From eb5a776d72c2d3a2c563737f0ab8a8c82b953c9e Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 5 Oct 2021 19:03:10 +0200 Subject: [PATCH] [csharp] Port of commit d9b882e. Added TrackEntry.IsEmptyAnimation. --- spine-csharp/src/AnimationState.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spine-csharp/src/AnimationState.cs b/spine-csharp/src/AnimationState.cs index db55683b0..5cd73b7a9 100644 --- a/spine-csharp/src/AnimationState.cs +++ b/spine-csharp/src/AnimationState.cs @@ -40,7 +40,7 @@ namespace Spine { /// See Applying Animations in the Spine Runtimes Guide. /// public class AnimationState { - static readonly Animation EmptyAnimation = new Animation("", new ExposedList(), 0); + internal static readonly Animation EmptyAnimation = new Animation("", new ExposedList(), 0); /// 1) A previously applied timeline has set this property. /// Result: Mix from the current pose to the timeline pose. @@ -1253,6 +1253,10 @@ namespace Spine { /// If true, the animation will be applied in reverse. Events are not fired when an animation is applied in reverse. public bool Reverse { get { return reverse; } set { reverse = value; } } + /// Returns true if this entry is for the empty animation. See , + /// , and . + public bool IsEmptyAnimation { get { return animation == AnimationState.EmptyAnimation; }} + /// /// /// Resets the rotation directions for mixing this entry's rotate timelines. This can be useful to avoid bones rotating the