From 6893513f254ffe9e35c2fda3371bd296cc22905c Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Thu, 6 Feb 2020 15:57:09 +0200 Subject: [PATCH] Fixed loading order problem that caused parameters to never get updated gitlab #72 Change-Id: I9dc5673e41de56d25f550c72d86f15791c8d1851 --- .../src/org/simantics/plant3d/utils/P3DUtil.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); + } } } -- 2.47.1