From: Marko Luukkainen Date: Thu, 5 Dec 2019 13:39:54 +0000 (+0200) Subject: Force zero offset for concentric reducers X-Git-Tag: v1.43.0~94 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F3687%2F1;hp=8a0cd33ffd13d79465f8a7b54ae19945599a99bf;p=simantics%2F3d.git Force zero offset for concentric reducers gitlab #65 Change-Id: I7a38605d1bb089286b48bccf4d00fdfcd32d78c3 (cherry picked from commit 8b4cdc730d95283475ba5c4639a534215118b94a) --- 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; }