From: Tuukka Lehtonen Date: Thu, 6 Feb 2020 13:57:09 +0000 (+0200) Subject: Fixed loading order problem that caused parameters to never get updated X-Git-Tag: v1.43.0~84 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=6893513f254ffe9e35c2fda3371bd296cc22905c;p=simantics%2F3d.git Fixed loading order problem that caused parameters to never get updated gitlab #72 Change-Id: I9dc5673e41de56d25f550c72d86f15791c8d1851 --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/utils/P3DUtil.java b/org.simantics.plant3d/src/org/simantics/plant3d/utils/P3DUtil.java index ab795acc..c125f105 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/utils/P3DUtil.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/utils/P3DUtil.java @@ -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(); + } } }