if (currentNext == null && currentPrev == null) {
removeComponent();
pipeRun.remChild(this);
+ checkRemove(pipeRun);
return;
}
if (currentNext != null && currentPrev != null) {
pcp._remove(); // This call will recursively call also this method...
return true;
}
+ } else if (points.size() == 2) {
+
}
return false;
}
pcps.add(points);
PipeControlPoint pcp = points.get(points.size()-1);
if (pcp.getChildPoints().size() > 0) {
- pipeRun = pcp.getChildPoints().get(0).getPipeRun();
+ PipeRun pipeRun2 = pcp.getChildPoints().get(0).getPipeRun();
+ if (pipeRun == pipeRun2)
+ break;
+ else
+ pipeRun = pipeRun2;
} else {
break;
}