Commit ddc3881f authored by legoc's avatar legoc
Browse files

Better selection unselection but not perfect

parent 6f385335
......@@ -3,6 +3,7 @@ package fr.ill.ics.n3d;
import java.io.File;
import java.util.Optional;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
......@@ -143,6 +144,7 @@ public class Nomad3DEditor extends Application {
try {
Logger logger = Logger.getLogger("nomad-3d");
logger.setLevel(Level.ALL);
String logPath = System.getProperty("user.dir") + File.separator + "nomad-3d-editor.log";
FileHandler handler = new FileHandler(logPath);
handler.setFormatter(new SimpleFormatter());
......
......@@ -730,7 +730,7 @@ public class EditorMenuBar extends MenuBar {
Nomad3DEditor.getInstance().getModel().clearSelection();
updateScene();
Nomad3DEditor.getInstance().getModel().addToSelection(selectedComponent);
Nomad3DEditor.getInstance().getModel().addToSelectionWithTreeUpdate(selectedComponent);
valueThread.interrupt();
addStage.close();
});
......@@ -744,7 +744,7 @@ public class EditorMenuBar extends MenuBar {
selectedComponent.setAxis(initialAxis);
Nomad3DEditor.getInstance().getModel().clearSelection();
updateScene();
Nomad3DEditor.getInstance().getModel().addToSelection(selectedComponent);
Nomad3DEditor.getInstance().getModel().addToSelectionWithTreeUpdate(selectedComponent);
valueThread.interrupt();
addStage.close();
});
......
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