X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fsrc%2Forg%2Fsimantics%2Fplant3d%2Futils%2FComponentUtils.java;h=58b9f1e0cf61cd1c4a8098c9da8780f42c279b78;hb=ebbeda2e4e110045d29dd9d05b840e5890a5eb35;hp=15ee7918ca1709501eab1bc076054a1459df479f;hpb=3d5276c8b4b0ec8f440994f17b20bec34e6cc3fe;p=simantics%2F3d.git diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java b/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java index 15ee7918..58b9f1e0 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java @@ -336,13 +336,18 @@ public class ComponentUtils { if (toPcp.isInline()) { switch (position) { case NEXT: - if (toPcp.isDualInline()) + if (toPcp.isDualInline()) { toPcp = toPcp.getSubPoint().get(0); + pipeRun = toPcp.getPipeRun(); + } break; case PREVIOUS: - if (toPcp.isDualSub()) + if (toPcp.isDualSub()) { toPcp = toPcp.parent; + pipeRun = toPcp.getPipeRun(); + } + break; } Vector3d start = new Vector3d(); Vector3d end = new Vector3d();