forked from bartvdbraak/blender
fix [#25757] Torus script uses radians for rotation in panel
This commit is contained in:
parent
f949c567b9
commit
076171c5fa
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user