- disable opening of SceneViewer for OffScenePanels

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7961 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 2b2daf2090
commit 67a8ed6fc7
  1. 16
      sdk/jme3-core/src/com/jme3/gde/core/scene/OffScenePanel.java

@ -126,14 +126,14 @@ public class OffScenePanel extends javax.swing.JPanel implements SceneProcessor
}
public void startPreview() {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
if(!SceneViewerTopComponent.findInstance().isOpened()){
SceneViewerTopComponent.findInstance().open();
}
}
});
// java.awt.EventQueue.invokeLater(new Runnable() {
//
// public void run() {
// if(!SceneViewerTopComponent.findInstance().isOpened()){
// SceneViewerTopComponent.findInstance().open();
// }
// }
// });
SceneApplication.getApplication().enqueue(new Callable<Object>() {
public Object call() throws Exception {

Loading…
Cancel
Save