From 1cd59e8997dc9cc0a31c876ecc2bed92cf3a81f2 Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Tue, 7 Apr 2020 10:27:39 +0300 Subject: [PATCH] Fix getControlPointEnds() for end components gitlab #115 Change-Id: I55806b0b8545351a3162b5455102c31a49f4d59a --- .../plant3d/scenegraph/controlpoint/PipeControlPoint.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java index cd4f407b..f5db5880 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java @@ -951,6 +951,8 @@ public class PipeControlPoint extends G3DNode implements IP3DNode { dir2.scale(length * 0.5); dir1 = new Vector3d(dir2); dir1.negate(); + } else if (isEnd()) { + dir2 = dir1 = new Vector3d(); } else { dir1 = getPathLegDirection(Direction.PREVIOUS); dir2 = sub.getPathLegDirection(Direction.NEXT); -- 2.47.1