- Disable light and info button when closing SceneViewer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10128 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent dc8dabb024
commit d5f93755d7
  1. 2
      sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java

@ -351,6 +351,8 @@ public final class SceneViewerTopComponent extends TopComponent {
// oglCanvas.setActiveUpdates(false); // oglCanvas.setActiveUpdates(false);
SceneRequest req = SceneApplication.getApplication().getCurrentSceneRequest(); SceneRequest req = SceneApplication.getApplication().getCurrentSceneRequest();
if (req != null) { if (req != null) {
enableCamLight.setEnabled(false);
enableStats.setEnabled(false);
SceneApplication.getApplication().closeScene(req); SceneApplication.getApplication().closeScene(req);
} }
} }

Loading…
Cancel
Save