From: Reino Ruusu Date: Tue, 7 Apr 2020 07:27:39 +0000 (+0300) Subject: Fix getControlPointEnds() for end components X-Git-Tag: v1.43.0~26 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F4113%2F1;p=simantics%2F3d.git Fix getControlPointEnds() for end components gitlab #115 Change-Id: I55806b0b8545351a3162b5455102c31a49f4d59a (cherry picked from commit 1cd59e8997dc9cc0a31c876ecc2bed92cf3a81f2) --- 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);