Răsfoiți Sursa

AnimEvent: delete unnecessary check from the onPlay() method

Stephen Gold 4 ani în urmă
părinte
comite
2b00e426e0

+ 0 - 4
jme3-core/src/main/java/com/jme3/cinematic/events/AnimEvent.java

@@ -133,10 +133,6 @@ public class AnimEvent extends AbstractCinematicEvent {
 
         Action currentAction = composer.getCurrentAction(layerName);
         Action eventAction = composer.action(actionName);
-        if (eventAction == null) {
-            throw new IllegalStateException("No action named: " + actionName);
-        }
-
         if (currentAction != eventAction) {
             composer.setCurrentAction(actionName, layerName);
             assert composer.getCurrentAction(layerName) == eventAction;