]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java
SCL function for connecting pipeline components
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / scenegraph / controlpoint / PipeControlPoint.java
index 8e3e6bbdc1c926d28270e3900f7d8648a7f01cf3..660558652c47c03c1897b7aa1a53761e6795a206 100644 (file)
@@ -1189,9 +1189,9 @@ public class PipeControlPoint extends G3DNode implements IP3DNode {
                }
                if (br0 != null) {
                    if (br0.getNext() == component)
-                       prev.setNext(null);
+                       br0.setNext(null);
                    else if (br0.getPrevious() == component)
-                prev.setPrevious(null);
+                       br0.setPrevious(null);
                    else if (br0.getBranch0() == component)
                        br0.setBranch0(null);
                }