diff options
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r-- | release/scripts/startup/bl_operators/add_mesh_torus.py | 10 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/freestyle.py | 8 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/vertexpaint_dirt.py | 4 |
3 files changed, 13 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_operators/add_mesh_torus.py b/release/scripts/startup/bl_operators/add_mesh_torus.py index 6bd470091c3..c4fd60140b5 100644 --- a/release/scripts/startup/bl_operators/add_mesh_torus.py +++ b/release/scripts/startup/bl_operators/add_mesh_torus.py @@ -149,10 +149,12 @@ class AddTorus(Operator, object_utils.AddObjectHelper): ) mode: bpy.props.EnumProperty( name="Torus Dimensions", - items=(("MAJOR_MINOR", "Major/Minor", - "Use the major/minor radii for torus dimensions"), - ("EXT_INT", "Exterior/Interior", - "Use the exterior/interior radii for torus dimensions")), + items=( + ('MAJOR_MINOR', "Major/Minor", + "Use the major/minor radii for torus dimensions"), + ('EXT_INT', "Exterior/Interior", + "Use the exterior/interior radii for torus dimensions"), + ), update=mode_update_callback, ) major_radius: FloatProperty( diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py index 894808de3ed..7196c53098b 100644 --- a/release/scripts/startup/bl_operators/freestyle.py +++ b/release/scripts/startup/bl_operators/freestyle.py @@ -36,9 +36,11 @@ class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator): type: EnumProperty( name="Type", description="Type of the modifier to work on", - items=(("COLOR", "Color", "Color modifier type"), - ("ALPHA", "Alpha", "Alpha modifier type"), - ("THICKNESS", "Thickness", "Thickness modifier type")), + items=( + ('COLOR', "Color", "Color modifier type"), + ('ALPHA', "Alpha", "Alpha modifier type"), + ('THICKNESS', "Thickness", "Thickness modifier type"), + ), ) name: StringProperty( name="Name", diff --git a/release/scripts/startup/bl_operators/vertexpaint_dirt.py b/release/scripts/startup/bl_operators/vertexpaint_dirt.py index 335c3d8bbda..e0bc5286bfe 100644 --- a/release/scripts/startup/bl_operators/vertexpaint_dirt.py +++ b/release/scripts/startup/bl_operators/vertexpaint_dirt.py @@ -155,14 +155,14 @@ class VertexPaintDirt(Operator): description="Less than 90 limits the angle used in the tonal range", min=0.0, max=pi, default=pi, - unit="ROTATION", + unit='ROTATION', ) dirt_angle: FloatProperty( name="Dirt Angle", description="Less than 90 limits the angle used in the tonal range", min=0.0, max=pi, default=0.0, - unit="ROTATION", + unit='ROTATION', ) dirt_only: BoolProperty( name="Dirt Only", |