]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Nozzle positions were not loaded correctly 23/3123/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 20 Aug 2019 11:56:46 +0000 (14:56 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 20 Aug 2019 11:56:46 +0000 (14:56 +0300)
Fixed nozzle positions were loaded with default equipment
parametrisation

gitlab #27

Change-Id: I895d5c53658af41236e5285c6f2b582a8fdd617e

org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Equipment.java

index 6b17ef86648d6eb2100450a6ebbc07b4cc3737d9..0664992e71f9373f7f5519d27e8689cf27a7374f 100644 (file)
@@ -84,6 +84,7 @@ public class Equipment extends P3DParentGeometryNode<Nozzle> {
        @CompoundSetPropertyValue(value="parameters")
        public void setParameterMap(Map<String, Object> parameters) {
                super.setParameterMap(parameters);
+               syncNozzles();
        }
        
        @Override
@@ -109,7 +110,7 @@ public class Equipment extends P3DParentGeometryNode<Nozzle> {
        public void syncNozzles() {
            if (fnp == null)
                return;
-           
+           //updateParameters();
         int count = fnp.numberOfNozzles();
         List<Nozzle> currentNozzles = getNodes();
         for (int i = 0; i < count; i++) {