]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.update/src/org/simantics/interop/update/model/UpdateNode.java
Allow existing nodes to contain No-operation update for dependency
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / UpdateNode.java
index da78b9016638aceb359281f304cdcf2a8844c0ee..de9d685abd84fafdeccf9ab69914555f23bc608d 100644 (file)
@@ -67,6 +67,12 @@ public class UpdateNode {
        
        public void addChild(UpdateNode node) {
                children.add(node);
+               if (op != null && node.op != null) {
+                       if (!op.getSubOps().contains(node.op)) {
+                               op.addSubOp(node.op);
+                               node.op.addParentOp(op);
+                       }
+               }
        }
 
        public ImageDescriptor getImage(ReadGraph graph) throws DatabaseException {