X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph.profile%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fprofile%2Fcommon%2FProfileObserver.java;fp=bundles%2Forg.simantics.scenegraph.profile%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fprofile%2Fcommon%2FProfileObserver.java;h=2c0ac3aced412f004434ec93830057bc35e9e70a;hb=00e9099763394dcd632097c31b5b31030858c3e9;hp=9d379c890b9bd952a3ac2b6db941b3c71acc07c6;hpb=e5871be84f8ba53a1c80be728bcfb67231c29279;p=simantics%2Fplatform.git 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();