- disable opening of SceneViewer for OffScenePanels
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7961 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2b2daf2090
commit
67a8ed6fc7
@ -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…
x
Reference in New Issue
Block a user