fix [#25757] Torus script uses radians for rotation in panel
This commit is contained in:
		@@ -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):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user