From b0e0a3863a65fa5351d8a1207f94ca37135c675a Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Thu, 5 Dec 2019 15:39:54 +0200 Subject: [PATCH 1/1] Force zero offset for concentric reducers gitlab #65 Change-Id: I7a38605d1bb089286b48bccf4d00fdfcd32d78c3 (cherry picked from commit 8b4cdc730d95283475ba5c4639a534215118b94a) --- .../org/simantics/plant3d/geometry/ReducerGeometryProvider.java | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.0