]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Fixed loading order problem that caused parameters to never get updated 53/3853/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 6 Feb 2020 13:57:09 +0000 (15:57 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 6 Feb 2020 13:57:09 +0000 (15:57 +0200)
gitlab #72

Change-Id: I9dc5673e41de56d25f550c72d86f15791c8d1851

org.simantics.plant3d/src/org/simantics/plant3d/utils/P3DUtil.java

index ab795acc23e413d48a298631e366d680f03d37c3..c125f105c84d0dfa5eb3686303609456bf283ab5 100644 (file)
@@ -230,11 +230,15 @@ public class P3DUtil {
        public static void finalizeDBLoad(P3DRootNode rootNode) throws Exception{
                for (INode node : rootNode.getChild()) {
                        if (node instanceof PipeRun) {
-                               for (PipelineComponent pc : ((PipeRun) node).getChild())
+                               for (PipelineComponent pc : ((PipeRun) node).getChild()) {
                                        pc.sync();
+                                       pc.updateParameters();
+                               }
                        } else if (node instanceof Equipment) {
-                               for (PipelineComponent pc : ((Equipment) node).getChild())
+                               for (PipelineComponent pc : ((Equipment) node).getChild()) {
                                        pc.sync();
+                                       pc.updateParameters();
+                               }
                        }
                }