From: Marko Luukkainen Date: Thu, 28 Nov 2019 15:49:56 +0000 (+0200) Subject: Remove/Split could go over PipeRun boundary and break reducers. X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F3638%2F1;p=simantics%2F3d.git Remove/Split could go over PipeRun boundary and break reducers. gitlab #33 Change-Id: Ieb76bf130b1baaed040ffff38aa950bc0461d7c9 --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java index eae8ec33..aa5eacf9 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java @@ -1305,6 +1305,8 @@ public class PipeControlPoint extends G3DNode implements IP3DNode { PipelineComponent n = next.getPipelineComponent(); while (n != null) { + if (n.getPipeRun() != previousRun) + break; if (! (n instanceof Nozzle)) { n.deattach(); nextPipeRun.addChild(n);