Skip to content

Commit

Permalink
[OpenSCAD] Fix twist angle to not limit to 360 deg
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Apr 9, 2021
1 parent 4e4068e commit 602fef2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/OpenSCAD/OpenSCADFeatures.py
Expand Up @@ -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
Expand Down

0 comments on commit 602fef2

Please sign in to comment.