Ver Fonte

Fixed an issue with BlendableAction.setTransitionLength()... (#1205)

...which was not setting new length to transition tween and causing the new length to have no effect.
Ali-RS há 5 anos atrás
pai
commit
3b8665fe93

+ 1 - 0
jme3-core/src/main/java/com/jme3/anim/tween/action/BlendableAction.java

@@ -74,6 +74,7 @@ public abstract class BlendableAction extends Action {
 
     public void setTransitionLength(double transitionLength) {
         this.transitionLength = transitionLength;
+        this.transition.setLength(transitionLength);
     }
 
     protected float getTransitionWeight() {