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=8a1598adc0f361a00573a0042fdee3f73583dfcd;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++) {