Commit d570a938 authored by legoc's avatar legoc
Browse files

First step in the file model review: write the edition file and read both...

First step in the file model review: write the edition file and read both files, only axes are saved
parent 84925f28
......@@ -302,13 +302,18 @@ public class Nomad3DEditor extends Application {
} else {
n3dImporter.read();
}
n3dImporter.readEdition();
if (n3dImporter.getModel().getRoot() != null) {
this.model = n3dImporter.getModel();
model = n3dImporter.getModel();
} else {
// No model loaded
return null;
}
// Compute the scene hierarchies.
model.computeSceneHierarchies();
this.root = new Group();
this.subScene = new SubScene(root, 1280, 720, true, SceneAntialiasing.BALANCED);
......
......@@ -156,7 +156,7 @@ public class EditorMenuBar extends MenuBar {
public void handle(ActionEvent event) {
if (Nomad3DEditor.getInstance().getModel() != null) {
Nomad3DExporter exporter = new Nomad3DExporter();
exporter.write(Nomad3DEditor.getInstance().getModel());
exporter.writeEdition(Nomad3DEditor.getInstance().getModel());
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment