From d98509432485dc1bcf5d8fc2c9fe43d8c34a133d Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Fri, 3 May 2019 13:30:13 +0300 Subject: [PATCH] Workaround to profile updating problem Change-Id: I02eb507702eb1bacb7f1e5016b2fe26513e4b190 --- .../simantics/scenegraph/profile/common/ProfileObserver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ProfileObserver.java b/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ProfileObserver.java index 9d379c890..2c0ac3ace 100644 --- a/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ProfileObserver.java +++ b/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ProfileObserver.java @@ -179,7 +179,9 @@ public class ProfileObserver implements EvaluationContext { e.apply(ProfileObserver.this); } updateAll = false; - updates.clear(); + // FIXME: Updates which were applied should be cleared to prevent double update. + // We can't, however, clear all updates since some nodes might still be missing. + //updates.clear(); } else { List> updatesCopy = new ArrayList<>(updates); updates.clear(); -- 2.47.1