From d5f93755d7ad405f5377495128553cb0d80e795c Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sun, 20 Jan 2013 19:18:03 +0000 Subject: [PATCH] SDK: - Disable light and info button when closing SceneViewer git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10128 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java index 4c9657fc2..9ebd22e5c 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java @@ -351,6 +351,8 @@ public final class SceneViewerTopComponent extends TopComponent { // oglCanvas.setActiveUpdates(false); SceneRequest req = SceneApplication.getApplication().getCurrentSceneRequest(); if (req != null) { + enableCamLight.setEnabled(false); + enableStats.setEnabled(false); SceneApplication.getApplication().closeScene(req); } }