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

View File

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

View File

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