Quellcode durchsuchen

[as3] Ported fix for #1119

badlogic vor 7 Jahren
Ursprung
Commit
0f219a2eb0

BIN
spine-as3/spine-as3-example/lib/spine-as3.swc


+ 4 - 3
spine-as3/spine-as3/src/spine/animation/AnimationState.as

@@ -129,6 +129,9 @@ package spine.animation {
 			if (from == null) return true;
 
 			var finished : Boolean = updateMixingFrom(from, delta);
+			
+			from.animationLast = from.nextAnimationLast;
+			from.trackLast = from.nextTrackLast;
 
 			// Require mixTime > 0 to ensure the mixing from entry was applied at least once.
 			if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
@@ -140,9 +143,7 @@ package spine.animation {
 				}
 				return finished;
 			}
-	
-			from.animationLast = from.nextAnimationLast;
-			from.trackLast = from.nextTrackLast;
+				
 			from.trackTime += delta * from.timeScale;
 			to.mixTime += delta * to.timeScale;
 			return false;

BIN
spine-starling/spine-starling-example/lib/spine-as3.swc


BIN
spine-starling/spine-starling/lib/spine-as3.swc