From ebbeda2e4e110045d29dd9d05b840e5890a5eb35 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Thu, 29 Aug 2019 18:50:11 +0300 Subject: [PATCH] Adding a component next to a reducer used wrong PipeRun gitlab #12 Change-Id: I8164d704011761f35d004506dba9462c24c7272f --- .../src/org/simantics/plant3d/utils/ComponentUtils.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(); -- 2.47.1