From ebfbe3c0a31546727e171d8256d895f53831f55f Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Tue, 5 Nov 2019 09:42:41 +0200 Subject: [PATCH] Pipe routing could temporarily lose straight connected to start turn gitlab #36 Change-Id: I8109b6d72d46a7033507a8be0e0bdf763af7ee6f --- .../plant3d/scenegraph/controlpoint/PipingRules.java | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.47.1