From 5274548dca947158883acf2565ef41ebfbf49330 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Tue, 14 Jan 2020 14:16:09 +0200 Subject: [PATCH] Default dependencies made delete op to apply additions gitlab #16 Change-Id: I5ccf1ffeb5fca0db25c3fde13b6bf85566a749ef --- .../org/simantics/interop/update/model/AddDeleteUpdateOp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java b/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java index 3bd21b0..3f4b6bf 100644 --- a/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java +++ b/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java @@ -42,10 +42,10 @@ public abstract class AddDeleteUpdateOp extends UpdateOp { @Override public boolean requiresOp(UpdateOp op) { if (add) { - if (getParentOps().contains(op)) + if (getParentOps().contains(op) && op.isAdd()) return true; } else { - if (getSubOps().contains(op)) + if (getSubOps().contains(op) && op.isDelete()) return true; } return false; -- 2.47.1