From 841850def29031f1939ce4d473396c464953b224 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 5 Feb 2013 19:55:51 +0000 Subject: [PATCH] - fix in lifecycle of BulletAppState git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10347 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/bullet-common/com/jme3/bullet/BulletAppState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/bullet-common/com/jme3/bullet/BulletAppState.java b/engine/src/bullet-common/com/jme3/bullet/BulletAppState.java index 518103a55..c3b69a32d 100644 --- a/engine/src/bullet-common/com/jme3/bullet/BulletAppState.java +++ b/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(); }