From fb681741dece5cf9ef4d5075811d19c75afffdb2 Mon Sep 17 00:00:00 2001 From: "sgold@sonic.net" <> Date: Mon, 21 Apr 2014 13:15:18 -0700 Subject: [PATCH] fix issue where AnimChannel.update() fails to invoke onAnimCycleDone(): corresponds to ad99467cf2b313f57bff3807508114ef0caadc5f in master --- engine/src/core/com/jme3/animation/AnimChannel.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/animation/AnimChannel.java b/engine/src/core/com/jme3/animation/AnimChannel.java index 6a74b1864..f4afb5be7 100644 --- a/engine/src/core/com/jme3/animation/AnimChannel.java +++ b/engine/src/core/com/jme3/animation/AnimChannel.java @@ -401,7 +401,7 @@ public final class AnimChannel { } animation.setTime(time, blendAmount, control, this, vars); - + time += tpf * speed; if (animation.getLength() > 0){ if (!notified && (time >= animation.getLength() || time < 0)) { if (loopMode == LoopMode.DontLoop) { @@ -413,7 +413,6 @@ public final class AnimChannel { control.notifyAnimCycleDone(this, animation.getName()); } } - time += tpf * speed; time = clampWrapTime(time, animation.getLength(), loopMode); if (time < 0){ // Negative time indicates that speed should be inverted