Commit 5205b418 authored by Bordais Anaelle's avatar Bordais Anaelle
Browse files

Small change

parent cb0664bf
......@@ -302,7 +302,7 @@ public class EditorMenuBar extends MenuBar {
return Math.round(radius.get()*1000)/1000.0;
}
public CameraControls getCam() {
public CameraControls getOriginalCam() {
return originalCamera;
}
......@@ -2840,6 +2840,7 @@ public class EditorMenuBar extends MenuBar {
// In order to put the parameters in the table
CameraTableEntry fictiveCam = new CameraTableEntry(cam);
data.add(fictiveCam);
System.out.println("Cam add : "+ cam.getTransform());
});
......@@ -2864,9 +2865,12 @@ public class EditorMenuBar extends MenuBar {
// Define our new TableRow
TableRow<CameraTableEntry> row = new TableRow<>();
row.setOnMouseClicked(event -> {
CameraControls cam = Nomad3DEditor.getInstance().getControls();
cam = table.getSelectionModel().getSelectedItem().getCam();
cam.update();
cam = table.getSelectionModel().getSelectedItem().getOriginalCam();
cam.update();
//update();
});
return row;
});
......@@ -2899,7 +2903,7 @@ public class EditorMenuBar extends MenuBar {
this.getMenus().addAll(this.file, this.edit, this.view, this.selection, this.cameraView, this.help);
//---------------------------------------------- FIN RAJOUTE
}
private void applyValue(String value) {
......@@ -2954,7 +2958,7 @@ public class EditorMenuBar extends MenuBar {
String text = "Current Value ";
if (type == Axis.Type.ROTATION) {
text += "";
text += "";
} else if (type == Axis.Type.TRANSLATION) {
text += "mm";
}
......
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