The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

Commit b6f948e4 authored by yannick legoc's avatar yannick legoc
Browse files

Removed sceneToParent member of Axis

parent 6823872d
......@@ -53,15 +53,10 @@ public class AxisBuilder {
this.axis = axis;
this.parentGroup = parentGroup;
if (!modified) {
try {
this.axis.setSceneToParent(parentGroup.getLocalToSceneTransform().createInverse());
} catch (NonInvertibleTransformException e) {
e.printStackTrace();
}
this.axis.setVisible(true);
parentGroup.getChildren().add(this.axis.getVisualGroup());
}
this.axis.updateVisualGroup();
this.axis.setVisible(true);
parentGroup.getChildren().add(this.axis.getVisualGroup());
this.axis.getVisualGroup().setOnMousePressed(me -> {
mousePos = new Point2D(me.getSceneX(), me.getSceneY());
mouseOldPos = new Point2D(me.getSceneX(), me.getSceneY());
......
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