]> gerrit.simantics Code Review - simantics/3d.git/commit
Handle PipeRun removals with detaching Components. 44/3644/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 29 Nov 2019 10:44:52 +0000 (12:44 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 29 Nov 2019 11:03:20 +0000 (11:03 +0000)
commitce1395110dd0db27c7c99c426181b49d22211264
treeec6358260a923ed1fe644abb27c20487cc88337c
parent178af981ba4ccabe1aa3d6d3a4f67a1eb30b3cc5
Handle PipeRun removals with detaching Components.

Some operations can move Components between PipeRuns. If we create a
PipeRun within such operation, and the undo the modification, removal of
the created PipeRun may remove Components before they are attached to
their original PipeRuns.

1. Now PipeRun removal detaches Components, so that Component structure
remains intact.
2. PipeCOntrolPoint removal work without PipeRun.
3. AbstractVTKNodeMap calls INode.remove() all removed nodes.

gitlab #35

Change-Id: I37ec56302581ab176fe630c91b3cddb301ad1210
(cherry picked from commit f346390a5a8cd4262a9aa68951e55d504d412549)
org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/common/AbstractVTKNodeMap.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipeRun.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipelineComponent.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java