X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fsrc%2Forg%2Fsimantics%2Fplant3d%2Factions%2FAddComponentAction.java;h=ea25230ab57c745bbe8e229e648d5604c293d4a7;hb=15e688c6d6148fdbda457e5f55bdea4259c97aa8;hp=88ab98383633de72e05bfb8b380528c1b8f5eaab;hpb=a1e1faa6915445e786f482170576b9c9d0f5d982;p=simantics%2F3d.git diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/actions/AddComponentAction.java b/org.simantics.plant3d/src/org/simantics/plant3d/actions/AddComponentAction.java index 88ab9838..ea25230a 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/actions/AddComponentAction.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/actions/AddComponentAction.java @@ -42,7 +42,9 @@ public class AddComponentAction extends vtkSwtAction { private Item toAdd = null; private PositionType insertPosition; + @SuppressWarnings("unused") private boolean insertAdjustable; + @SuppressWarnings("unused") private boolean lengthAdjustable; private String libUri; @@ -81,6 +83,7 @@ public class AddComponentAction extends vtkSwtAction { private Double length; private Double angle; + private Double rotationAngle; private Double diameter; private Double turnRadius; @@ -98,6 +101,7 @@ public class AddComponentAction extends vtkSwtAction { this.lengthAdjustable = dialog.isLenghtAdjustable(); this.length = dialog.getLength(); this.angle = dialog.getAngle(); + this.rotationAngle = dialog.getRotationAngle(); this.diameter = dialog.getDiameter(); this.turnRadius = dialog.getTurnRadius(); allowed = dialog.filterAllowed(); @@ -175,6 +179,7 @@ public class AddComponentAction extends vtkSwtAction { inst.length = length; inst.turnRadius = turnRadius; inst.insertPosition = insertPosition; + inst.rotationAngle = rotationAngle; inst.position = position; ComponentUtils.addComponent(root, component, inst); } catch (Exception e) {