From 8a1598adc0f361a00573a0042fdee3f73583dfcd Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Tue, 20 Aug 2019 14:56:46 +0300 Subject: [PATCH] Nozzle positions were not loaded correctly Fixed nozzle positions were loaded with default equipment parametrisation gitlab #27 Change-Id: I895d5c53658af41236e5285c6f2b582a8fdd617e --- .../src/org/simantics/plant3d/scenegraph/Equipment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) { -- 2.47.1