From 09d3f28ede238942363f8a7fd2f3dc13309c2fd6 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Fri, 18 Oct 2019 15:22:20 +0300 Subject: [PATCH] Synchronizing connected objects did not send events. Without events, removing a component left connection relations to the DB, which then caused problems with undo handling, and corruption of component structure. gitlab #35 Change-Id: I1e67df0db3fcdc71c5191411e2e93d9df18791cf --- .../org/simantics/plant3d/scenegraph/PipelineComponent.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipelineComponent.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipelineComponent.java index 28e4ad71..90dba91d 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipelineComponent.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipelineComponent.java @@ -265,14 +265,17 @@ public abstract class PipelineComponent extends GeometryNode { if (next == comp) { next = null; syncnext = false; + firePropertyChanged(Plant3D.URIs.HasNext); syncNext(); } else if (previous == comp) { previous = null; syncprev = false; + firePropertyChanged(Plant3D.URIs.HasPrevious); syncPrevious(); } else if (branch0 == comp) { branch0 = null; syncbr0 = false; + firePropertyChanged(Plant3D.URIs.HasBranch0); syncBranch0(); } } -- 2.47.1