]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Remove/Split could go over PipeRun boundary and break reducers. 38/3638/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 28 Nov 2019 15:49:56 +0000 (17:49 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 28 Nov 2019 15:49:56 +0000 (17:49 +0200)
gitlab #33

Change-Id: Ieb76bf130b1baaed040ffff38aa950bc0461d7c9

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

index eae8ec33220aacc91b27873cf86e9eef4d7110a9..aa5eacf9338550c88ef2e6692677c349dd0f82c3 100644 (file)
@@ -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);