浏览代码

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 5 年之前
父节点
当前提交
3b8665fe93
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      jme3-core/src/main/java/com/jme3/anim/tween/action/BlendableAction.java

+ 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() {