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_cut_faces.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_cut_faces.py')
-rw-r--r--mesh_extra_tools/mesh_cut_faces.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mesh_extra_tools/mesh_cut_faces.py b/mesh_extra_tools/mesh_cut_faces.py
index cd710a07..195d491f 100644
--- a/mesh_extra_tools/mesh_cut_faces.py
+++ b/mesh_extra_tools/mesh_cut_faces.py
@@ -118,7 +118,7 @@ class MESH_xOT_deselect_boundary(Operator):
"so the tool will not have results")
bl_options = {'REGISTER', 'UNDO'}
- keep_cap_edges = BoolProperty(
+ keep_cap_edges: BoolProperty(
name="Keep Cap Edges",
description="Keep quad strip cap edges selected",
default=False
@@ -164,19 +164,19 @@ class MESH_xOT_cut_faces(Operator):
SUBD_FAN = 2
SUBD_STRAIGHT_CUT = 3
- num_cuts = IntProperty(
+ num_cuts: IntProperty(
name="Number of Cuts",
default=1,
min=1,
max=100,
subtype='UNSIGNED'
)
- use_single_edge = BoolProperty(
+ use_single_edge: BoolProperty(
name="Quad/Tri Mode",
description="Cut boundary faces",
default=False
)
- corner_type = EnumProperty(
+ corner_type: EnumProperty(
items=[('SUBD_INNERVERT', "Inner Vert", ""),
('SUBD_PATH', "Path", ""),
('SUBD_FAN', "Fan", ""),
@@ -186,7 +186,7 @@ class MESH_xOT_cut_faces(Operator):
description="How to subdivide quad corners",
default='SUBD_STRAIGHT_CUT'
)
- use_grid_fill = BoolProperty(
+ use_grid_fill: BoolProperty(
name="Use Grid Fill",
description="Fill fully enclosed faces with a grid",
default=True