fix [#25757] Torus script uses radians for rotation in panel

This commit is contained in:
Campbell Barton 2011-01-24 15:25:03 +00:00
parent f949c567b9
commit 076171c5fa
2 changed files with 8 additions and 4 deletions

@ -105,8 +105,10 @@ class AddTorus(bpy.types.Operator):
# generic transform props
view_align = BoolProperty(name="Align to View",
default=False)
location = FloatVectorProperty(name="Location")
rotation = FloatVectorProperty(name="Rotation")
location = FloatVectorProperty(name="Location",
subtype='TRANSLATION')
rotation = FloatVectorProperty(name="Rotation",
subtype='EULER')
def execute(self, context):

@ -58,8 +58,10 @@ class AddBox(bpy.types.Operator):
# generic transform props
view_align = BoolProperty(name="Align to View",
default=False)
location = FloatVectorProperty(name="Location")
rotation = FloatVectorProperty(name="Rotation")
location = FloatVectorProperty(name="Location",
subtype='TRANSLATION')
rotation = FloatVectorProperty(name="Rotation",
subtype='EULER')
def execute(self, context):