From: Marko Luukkainen Date: Tue, 20 Aug 2019 11:56:46 +0000 (+0300) Subject: Nozzle positions were not loaded correctly X-Git-Tag: v1.43.0~213 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F3123%2F1;p=simantics%2F3d.git Nozzle positions were not loaded correctly Fixed nozzle positions were loaded with default equipment parametrisation gitlab #27 Change-Id: I895d5c53658af41236e5285c6f2b582a8fdd617e --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Equipment.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Equipment.java index 6b17ef86..0664992e 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Equipment.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Equipment.java @@ -84,6 +84,7 @@ public class Equipment extends P3DParentGeometryNode { @CompoundSetPropertyValue(value="parameters") public void setParameterMap(Map parameters) { super.setParameterMap(parameters); + syncNozzles(); } @Override @@ -109,7 +110,7 @@ public class Equipment extends P3DParentGeometryNode { public void syncNozzles() { if (fnp == null) return; - + //updateParameters(); int count = fnp.numberOfNozzles(); List currentNozzles = getNodes(); for (int i = 0; i < count; i++) {