]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Merge "Allow user to specify component name in ComponentSelectionDialog"
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 6 Feb 2020 15:41:34 +0000 (15:41 +0000)
committerGerrit Code Review <gerrit2@simantics>
Thu, 6 Feb 2020 15:41:34 +0000 (15:41 +0000)
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();
+                               }
                        }
                }