瀏覽代碼

AnimEvent: delete unnecessary check from the onPlay() method

Stephen Gold 4 年之前
父節點
當前提交
2b00e426e0
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      jme3-core/src/main/java/com/jme3/cinematic/events/AnimEvent.java

+ 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;