]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Workaround to profile updating problem 73/2873/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Fri, 3 May 2019 10:30:13 +0000 (13:30 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Fri, 3 May 2019 10:30:13 +0000 (13:30 +0300)
Change-Id: I02eb507702eb1bacb7f1e5016b2fe26513e4b190

bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ProfileObserver.java

index 9d379c890b9bd952a3ac2b6db941b3c71acc07c6..2c0ac3aced412f004434ec93830057bc35e9e70a 100644 (file)
@@ -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<Pair<Style, Object>> updatesCopy = new ArrayList<>(updates);
                             updates.clear();