]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java
Removing components left orphan piperuns in the plant
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / scenegraph / controlpoint / PipeControlPoint.java
index 491a273331a36ec8a0392122c92dc8833c6bbfb6..20386b5408c11ca4477e4fb6a67a4bb4e4209ff5 100644 (file)
@@ -1079,6 +1079,7 @@ public class PipeControlPoint extends G3DNode implements IP3DNode {
                        if (currentNext == null && currentPrev == null) {
                                removeComponent();
                                pipeRun.remChild(this);
+                               checkRemove(pipeRun);
                                return;
                        }
                        if (currentNext != null && currentPrev != null) {
@@ -1350,6 +1351,8 @@ public class PipeControlPoint extends G3DNode implements IP3DNode {
                                pcp._remove(); // This call will recursively call also this method...
                                return true;
                        }
+               } else if (points.size() == 2) {
+                   
                }
                return false;
        }