From: Reino Ruusu Date: Thu, 12 Mar 2020 13:52:46 +0000 (+0200) Subject: Fix interpretation of turn angle in InsertInstruction X-Git-Tag: v1.43.0~33 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F3992%2F1;p=simantics%2F3d.git Fix interpretation of turn angle in InsertInstruction gitlab #109 Change-Id: Ibf7085e95281f1049c493a7f3d5e65344cc52a8e --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java b/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java index 31bdda9e..78f41665 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/utils/ComponentUtils.java @@ -490,7 +490,7 @@ public class ComponentUtils { } else if (newComponent instanceof TurnComponent) { TurnComponent turnComponent = (TurnComponent)newComponent; if (turnComponent.isVariableAngle()) { - newPcp.setTurnAngle(inst.angle); + newPcp.setTurnAngle(Math.toRadians(inst.angle)); newComponent.setParameter("turnAngle", inst.angle); } if (inst.rotationAngle != null)