- fix scene closing when opening file while scene is already used

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8628 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent b43b9efe18
commit 76d04b6e49
  1. 10
      sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java

@ -399,6 +399,7 @@ public class SceneApplication extends Application implements LookupProvider {
if (oldRequest == null) {
return;
}
notifyClose(oldRequest);
if (newRequest == null || newRequest.getRootNode() != oldRequest.getRootNode()) {
checkSave(oldRequest);
SceneUndoRedoManager manager = Lookup.getDefault().lookup(SceneUndoRedoManager.class);
@ -406,10 +407,11 @@ public class SceneApplication extends Application implements LookupProvider {
manager.discardAllEdits();
}
}
setCurrentFileNode(null);
setWindowTitle("OpenGL Window");
setHelpContext(null);
notifyClose(oldRequest);
if (newRequest == null) {
setCurrentFileNode(null);
setWindowTitle("OpenGL Window");
setHelpContext(null);
}
enqueue(new Callable() {
public Object call() throws Exception {

Loading…
Cancel
Save