Browse Source

SDK:
- Turn off light when closing scene

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10123 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

nor..67 12 years ago
parent
commit
a5f315e294
1 changed files with 1 additions and 0 deletions
  1. 1 0
      jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java

+ 1 - 0
jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java

@@ -459,6 +459,7 @@ public class SceneApplication extends Application implements LookupProvider {
                 if (oldRequest.getRequester() instanceof SceneApplication) {
                     camController.disable();
                 }
+                enableCamLight(false);
                 //TODO: state list is not thread safe..
                 fakeApp.removeCurrentStates();
                 enqueue(new Callable() {