]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Update offset values to reflect changes in pipe run parameters 85/4085/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Wed, 1 Apr 2020 13:07:07 +0000 (16:07 +0300)
committerReino Ruusu <reino.ruusu@semantum.fi>
Wed, 1 Apr 2020 13:07:07 +0000 (16:07 +0300)
gitlab #113

Change-Id: Iea589d15afd9fada0d73f9ecd5cea15f4531c7bd

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

index ed4917df6717cfc78fd726afbafde98abe727423..695f1fa698e040b657655e8ddf67b62b687695d5 100644 (file)
@@ -174,6 +174,7 @@ public class InlineComponent extends PipelineComponent {
                                        map.put("radius2", pipeRun2.getPipeDiameter() * 0.5);
                                }
                                if (controlPoint.isOffset() && !componentCalculatedOffset) {
+                                       updateOffset();
                                        map.put("offset", controlPoint.getOffset());
                                }
                        }