X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fsrc%2Forg%2Fsimantics%2Fplant3d%2Factions%2FTranslateFreeVariableLengthAction.java;h=1088a894347af1ab908d26083059e1220ebfdc5c;hb=0702c03a4c063b77af27ea492fafdd05c426bb62;hp=c9bdea171ec8b452571a5d53952bacdc5077db8a;hpb=6f4226494d2b90e24563763ed2805fcca13de11d;p=simantics%2F3d.git diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/actions/TranslateFreeVariableLengthAction.java b/org.simantics.plant3d/src/org/simantics/plant3d/actions/TranslateFreeVariableLengthAction.java index c9bdea17..1088a894 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/actions/TranslateFreeVariableLengthAction.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/actions/TranslateFreeVariableLengthAction.java @@ -92,7 +92,8 @@ public class TranslateFreeVariableLengthAction extends RoutePipeAction{ lock = LockType.CUSTOM; } else if (startComponent instanceof PipelineComponent){ if (startComponent instanceof InlineComponent) { - direction = startComponent.getControlPoint().getPathLegDirection(reversed ? Direction.PREVIOUS : Direction.NEXT); + direction = startComponent.getControlPoint().getInlineDir(); + if (reversed) direction.negate(); lock = LockType.CUSTOM; if (((InlineComponent) startComponent).isVariableLength()) { direction = null;