From ef60a73cb52b151d5a1ec053973b3b3faca90f65 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 20 Apr 2021 15:35:43 -0500 Subject: [PATCH] [OpenSCAD] Fix regression with angle specification Correct mistake introduced in 0e66abcab. --- src/Mod/OpenSCAD/OpenSCADFeatures.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/OpenSCAD/OpenSCADFeatures.py b/src/Mod/OpenSCAD/OpenSCADFeatures.py index b3cd2d0a24..93332b67a2 100644 --- a/src/Mod/OpenSCAD/OpenSCADFeatures.py +++ b/src/Mod/OpenSCAD/OpenSCADFeatures.py @@ -388,10 +388,11 @@ class Frustum: class Twist: def __init__(self, obj,child=None,h=1.0,angle=0.0,scale=[1.0,1.0]): + import FreeCAD obj.addProperty("App::PropertyLink","Base","Base", "The base object that must be transformed") obj.addProperty("App::PropertyQuantity","Angle","Base","Twist Angle") - obj.Angle = App.Units.Angle # assign the Angle unit + obj.Angle = FreeCAD.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")