From: Marko Luukkainen Date: Thu, 5 Dec 2019 13:39:54 +0000 (+0200) Subject: Force zero offset for concentric reducers X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F3686%2F1;p=simantics%2F3d.git Force zero offset for concentric reducers gitlab #65 Change-Id: I7a38605d1bb089286b48bccf4d00fdfcd32d78c3 --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/geometry/ReducerGeometryProvider.java b/org.simantics.plant3d/src/org/simantics/plant3d/geometry/ReducerGeometryProvider.java index 8697fe14..c793fd26 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/geometry/ReducerGeometryProvider.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/geometry/ReducerGeometryProvider.java @@ -78,6 +78,8 @@ public class ReducerGeometryProvider extends BuiltinMeshProvider { if (props.containsKey("offset")) { offset = (Double)props.get("offset"); + } else { + offset = 0.0; }