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=8b4cdc730d95283475ba5c4639a534215118b94a;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; }