Commit e573e01f authored by Paolo Mutti's avatar Paolo Mutti
Browse files

Corrected bug with reference axis coordinates

parent 33919d78
......@@ -8,9 +8,9 @@
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
......
......@@ -39,11 +39,17 @@ public class ReferenceAxisListDisplay {
visualGroup.getTransforms().clear();
ArrayList<ReferenceAxis> axes = ReferenceAxisList.getInstance().get();
ReferenceAxis selectedAxis = null;
// Add the reference axes.
for (ReferenceAxis axis : axes) {
for (ReferenceAxis a : axes) {
// Copy the loaded reference axis because its coordinates are in the local frame.
ReferenceAxis axis = new ReferenceAxis(a);
// Apply the parent component transform to have the coordinates in the global frame.
axis.applyTransform();
String componentName = "";
if (axis.getComponent() != null) {
......
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