Commit b6f948e4 authored by yannick legoc's avatar yannick legoc

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