]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Pipe routing could temporarily lose straight connected to start turn 49/3449/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 5 Nov 2019 07:42:41 +0000 (09:42 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 5 Nov 2019 07:42:41 +0000 (09:42 +0200)
gitlab #36

Change-Id: I8109b6d72d46a7033507a8be0e0bdf763af7ee6f

org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipingRules.java

index 393dc85e1ab005bae0e56c515e5ebc238cc99835..eb07e9c0f86c5d1340eabc5da22931f12bfe893f 100644 (file)
@@ -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();