From: Jussi Koskela Date: Fri, 3 May 2019 10:30:13 +0000 (+0300) Subject: Workaround to profile updating problem X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=d98509432485dc1bcf5d8fc2c9fe43d8c34a133d;p=simantics%2Fplatform.git Workaround to profile updating problem Change-Id: I02eb507702eb1bacb7f1e5016b2fe26513e4b190 --- 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();