From 602fef267adbd5c44912055539bc61100f6ef1ee Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Fri, 9 Apr 2021 11:57:44 -0500 Subject: [PATCH] [OpenSCAD] Fix twist angle to not limit to 360 deg --- src/Mod/OpenSCAD/OpenSCADFeatures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/OpenSCAD/OpenSCADFeatures.py b/src/Mod/OpenSCAD/OpenSCADFeatures.py index 433cf0d83f..b3cd2d0a24 100644 --- a/src/Mod/OpenSCAD/OpenSCADFeatures.py +++ b/src/Mod/OpenSCAD/OpenSCADFeatures.py @@ -390,12 +390,13 @@ class Twist: def __init__(self, obj,child=None,h=1.0,angle=0.0,scale=[1.0,1.0]): obj.addProperty("App::PropertyLink","Base","Base", "The base object that must be transformed") - obj.addProperty("App::PropertyAngle","Angle","Base","Twist Angle in degrees") #degree or rad + obj.addProperty("App::PropertyQuantity","Angle","Base","Twist Angle") + obj.Angle = App.Units.Angle # assign the Angle unit obj.addProperty("App::PropertyDistance","Height","Base","Height of the Extrusion") obj.addProperty("App::PropertyFloatList","Scale","Base","Scale to apply during the Extrusion") obj.Base = child - obj.Angle = angle + obj.Angle = angle obj.Height = h obj.Scale = scale obj.Proxy = self