Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
committerNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
commitaeabdc02a83a976b2f594cd66873c6d2b537e669 (patch)
tree3ac5922be25219ab666aae4b8d04002bce2e70a6 /mesh_extra_tools/mesh_edge_roundifier.py
parentba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (diff)
Update Add-ons class properties to annotations
This should take care of most of the class property conversions to use the new annotation format (colon instead of equals) for assignment. There may still be a few edge cases that were missed.
Diffstat (limited to 'mesh_extra_tools/mesh_edge_roundifier.py')
-rw-r--r--mesh_extra_tools/mesh_edge_roundifier.py58
1 files changed, 29 insertions, 29 deletions
diff --git a/mesh_extra_tools/mesh_edge_roundifier.py b/mesh_extra_tools/mesh_edge_roundifier.py
index 609d0df7..0ab20a69 100644
--- a/mesh_extra_tools/mesh_edge_roundifier.py
+++ b/mesh_extra_tools/mesh_edge_roundifier.py
@@ -264,7 +264,7 @@ class EdgeRoundifier(Operator):
threshold = 0.0005
obj = None
- edgeScaleFactor = FloatProperty(
+ edgeScaleFactor: FloatProperty(
name="",
description="Set the Factor of scaling",
default=1.0,
@@ -272,7 +272,7 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=5
)
- r = FloatProperty(
+ r: FloatProperty(
name="",
description="User Defined arc steepness by a Radius\n"
"Enabled only if Entry mode is set to Radius\n",
@@ -281,7 +281,7 @@ class EdgeRoundifier(Operator):
step=0.1,
precision=3
)
- a = FloatProperty(
+ a: FloatProperty(
name="",
description="User defined arc steepness calculated from an Angle\n"
"Enabled only if Entry mode is set to Angle and\n"
@@ -291,74 +291,74 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=1
)
- n = IntProperty(
+ n: IntProperty(
name="",
description="Arc subdivision level",
default=4,
min=1, max=100,
step=1
)
- flip = BoolProperty(
+ flip: BoolProperty(
name="Flip",
description="If True, flip the side of the selected edges where the arcs are drawn",
default=False
)
- invertAngle = BoolProperty(
+ invertAngle: BoolProperty(
name="Invert",
description="If True, uses an inverted angle to draw the arc (360 degrees - angle)",
default=False
)
- fullCircles = BoolProperty(
+ fullCircles: BoolProperty(
name="Circles",
description="If True, uses an angle of 360 degrees to draw the arcs",
default=False
)
- bothSides = BoolProperty(
+ bothSides: BoolProperty(
name="Both sides",
description="If True, draw arcs on both sides of the selected edges",
default=False
)
- drawArcCenters = BoolProperty(
+ drawArcCenters: BoolProperty(
name="Centers",
description="If True, draws a vertex for each spin center",
default=False
)
- removeEdges = BoolProperty(
+ removeEdges: BoolProperty(
name="Edges",
description="If True removes the Original selected edges",
default=False
)
- removeScaledEdges = BoolProperty(
+ removeScaledEdges: BoolProperty(
name="Scaled edges",
description="If True removes the Scaled edges (not part of the arcs)",
default=False
)
- connectArcWithEdge = BoolProperty(
+ connectArcWithEdge: BoolProperty(
name="Arc - Edge",
description="Connect Arcs to Edges",
default=False
)
- connectArcs = BoolProperty(
+ connectArcs: BoolProperty(
name="Arcs",
description="Connect subsequent Arcs",
default=False
)
- connectScaledAndBase = BoolProperty(
+ connectScaledAndBase: BoolProperty(
name="Scaled - Base Edge",
description="Connect Scaled to Base Edge",
default=False
)
- connectArcsFlip = BoolProperty(
+ connectArcsFlip: BoolProperty(
name="Flip Arcs",
description="Flip the connection of subsequent Arcs",
default=False
)
- connectArcWithEdgeFlip = BoolProperty(
+ connectArcWithEdgeFlip: BoolProperty(
name="Flip Arc - Edge",
description="Flip the connection of the Arcs to Edges",
default=False
)
- axisAngle = FloatProperty(
+ axisAngle: FloatProperty(
name="",
description="Rotate Arc around the perpendicular axis",
default=0.0,
@@ -366,7 +366,7 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=1
)
- edgeAngle = FloatProperty(
+ edgeAngle: FloatProperty(
name="",
description="Rotate Arc around the Edge (Edge acts like as the axis)",
default=0.0,
@@ -374,7 +374,7 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=1
)
- offset = FloatProperty(
+ offset: FloatProperty(
name="",
description="Offset Arc perpendicular the Edge",
default=0.0,
@@ -382,7 +382,7 @@ class EdgeRoundifier(Operator):
step=0.1,
precision=5
)
- offset2 = FloatProperty(
+ offset2: FloatProperty(
name="",
description="Offset Arc in parallel to the Edge",
default=0.0,
@@ -390,7 +390,7 @@ class EdgeRoundifier(Operator):
step=0.1,
precision=5
)
- ellipticFactor = FloatProperty(
+ ellipticFactor: FloatProperty(
name="",
description="Make Arc elliptic",
default=0.0,
@@ -399,7 +399,7 @@ class EdgeRoundifier(Operator):
precision=5
)
workModeItems = [("Normal", "Normal", ""), ("Reset", "Reset", "")]
- workMode = EnumProperty(
+ workMode: EnumProperty(
items=workModeItems,
name="",
default='Normal',
@@ -407,7 +407,7 @@ class EdgeRoundifier(Operator):
"Reset - changes back the parameters to their default values"
)
entryModeItems = [("Radius", "Radius", ""), ("Angle", "Angle", "")]
- entryMode = EnumProperty(
+ entryMode: EnumProperty(
items=entryModeItems,
name="",
default='Angle',
@@ -418,14 +418,14 @@ class EdgeRoundifier(Operator):
("Spin", "Spin", ""), ("V1", "V1", ""),
("Edge", "Edge", ""), ("V2", "V2", "")
]
- rotateCenter = EnumProperty(
+ rotateCenter: EnumProperty(
items=rotateCenterItems,
name="",
default='Edge',
description="Rotate center for spin axis rotate"
)
arcModeItems = [("FullEdgeArc", "Full", "Full"), ('HalfEdgeArc', "Half", "Half")]
- arcMode = EnumProperty(
+ arcMode: EnumProperty(
items=arcModeItems,
name="",
default='FullEdgeArc',
@@ -437,7 +437,7 @@ class EdgeRoundifier(Operator):
('72', "72", "PentagonCircle (5 sides)"), ('60', "60", "HexagonCircle (6 sides)"),
('45', "45", "OctagonCircle (8 sides)"), ('30', "30", "DodecagonCircle (12 sides)")
]
- angleEnum = EnumProperty(
+ angleEnum: EnumProperty(
items=angleItems,
name="",
default='180',
@@ -445,7 +445,7 @@ class EdgeRoundifier(Operator):
)
refItems = [('ORG', "Origin", "Use Origin Location"), ('CUR', "3D Cursor", "Use 3DCursor Location"),
('EDG', "Edge", "Use Individual Edge Reference")]
- referenceLocation = EnumProperty(
+ referenceLocation: EnumProperty(
items=refItems,
name="",
default='ORG',
@@ -456,7 +456,7 @@ class EdgeRoundifier(Operator):
(YZ, "YZ", "YZ Plane (X=0)"),
(XZ, "XZ", "XZ Plane (Y=0)")
]
- planeEnum = EnumProperty(
+ planeEnum: EnumProperty(
items=planeItems,
name="",
default='XY',
@@ -467,7 +467,7 @@ class EdgeRoundifier(Operator):
('CENTER', "Center", "Center of the Edge"),
('V2', "V2", "v2 - Second Edge's Vertex")
]
- edgeScaleCenterEnum = EnumProperty(
+ edgeScaleCenterEnum: EnumProperty(
items=edgeScaleCenterItems,
name="Edge scale center",
default='CENTER',