Ver Fonte

- fix in lifecycle of BulletAppState

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10347 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 há 12 anos atrás
pai
commit
841850def2

+ 1 - 1
engine/src/bullet-common/com/jme3/bullet/BulletAppState.java

@@ -173,7 +173,6 @@ public class BulletAppState implements AppState, PhysicsTickListener {
         }
         this.app = app;
         this.stateManager = stateManager;
-        initialized = true;
     }
 
     public boolean isInitialized() {
@@ -273,6 +272,7 @@ public class BulletAppState implements AppState, PhysicsTickListener {
             executor.shutdown();
             executor = null;
         }
+        initialized = false;
         pSpace.removeTickListener(this);
         pSpace.destroy();
     }