From d4b10ec362d9bd46a3f66289114e691d00c09197 Mon Sep 17 00:00:00 2001 From: jkauttio Date: Wed, 27 May 2015 11:03:00 +0000 Subject: [PATCH] Change the default dependency angle value from 0.0 to 0.1 in vensim import (sysdyn does not play nice with angles at excatly zero) refs #5644 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@31360 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../org/simantics/sysdyn/modelImport/mdl/SketchConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/mdl/SketchConnection.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/mdl/SketchConnection.java index e4b292c1..0a8b4a6c 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/mdl/SketchConnection.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/mdl/SketchConnection.java @@ -128,7 +128,8 @@ public class SketchConnection extends SketchObject { private double getAngle(Sketch sketch) { if (points == null || points.length < 2) { - return 0; + // zero angles do not work right for some reason + return 0.1; } SketchElement tail = (SketchElement)sketch.getObject(from); -- 2.47.1