Explorar o código

Modified AnimComposer.setCurrentAction() to return the Action. Makes it easier
to set the speed and stuff.

Paul Speed %!s(int64=7) %!d(string=hai) anos
pai
achega
7ded33051c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      jme3-core/src/main/java/com/jme3/anim/AnimComposer.java

+ 2 - 1
jme3-core/src/main/java/com/jme3/anim/AnimComposer.java

@@ -59,9 +59,10 @@ public class AnimComposer extends AbstractControl {
         animClipMap.remove(anim.getName());
     }
 
-    public void setCurrentAction(String name) {
+    public Action setCurrentAction(String name) {
         currentAction = action(name);
         time = 0;
+        return currentAction;
     }
 
     public Action action(String name) {