From: Marko Luukkainen Date: Tue, 5 Nov 2019 07:42:41 +0000 (+0200) Subject: Pipe routing could temporarily lose straight connected to start turn X-Git-Tag: v1.43.0~148 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F3449%2F1;p=simantics%2F3d.git Pipe routing could temporarily lose straight connected to start turn gitlab #36 Change-Id: I8109b6d72d46a7033507a8be0e0bdf763af7ee6f --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipingRules.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipingRules.java index 393dc85e..eb07e9c0 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipingRules.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipingRules.java @@ -684,6 +684,11 @@ public class PipingRules { // must be removed if (icp.isDeletable()) { + if (!allowInsertRemove) { + icp.setLength(0.0001); + triedIR = true; + return false; + } if (DEBUG) System.out.println("PipingRules.updateVariableLength removing " + icp); icp._remove();