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_bsurfaces.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_bsurfaces.py')
-rw-r--r--mesh_bsurfaces.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index c0c1e994..35c3459d 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -164,42 +164,42 @@ class GPENCIL_OT_SURFSK_add_surface(Operator):
bl_description = "Generates surfaces from grease pencil strokes, bezier curves or loose edges"
bl_options = {'REGISTER', 'UNDO'}
- edges_U = IntProperty(
+ edges_U: IntProperty(
name="Cross",
description="Number of face-loops crossing the strokes",
default=1,
min=1,
max=200
)
- edges_V = IntProperty(
+ edges_V: IntProperty(
name="Follow",
description="Number of face-loops following the strokes",
default=1,
min=1,
max=200
)
- cyclic_cross = BoolProperty(
+ cyclic_cross: BoolProperty(
name="Cyclic Cross",
description="Make cyclic the face-loops crossing the strokes",
default=False
)
- cyclic_follow = BoolProperty(
+ cyclic_follow: BoolProperty(
name="Cyclic Follow",
description="Make cyclic the face-loops following the strokes",
default=False
)
- loops_on_strokes = BoolProperty(
+ loops_on_strokes: BoolProperty(
name="Loops on strokes",
description="Make the loops match the paths of the strokes",
default=False
)
- automatic_join = BoolProperty(
+ automatic_join: BoolProperty(
name="Automatic join",
description="Join automatically vertices of either surfaces generated "
"by crosshatching, or from the borders of closed shapes",
default=False
)
- join_stretch_factor = FloatProperty(
+ join_stretch_factor: FloatProperty(
name="Stretch",
description="Amount of stretching or shrinking allowed for "
"edges when joining vertices automatically",
@@ -3871,7 +3871,7 @@ class BsurfPreferences(AddonPreferences):
# when defining this in a submodule of a python package.
bl_idname = __name__
- category = StringProperty(
+ category: StringProperty(
name="Tab Category",
description="Choose a name for the category of the panel",
default="Tools",
@@ -3889,33 +3889,33 @@ class BsurfPreferences(AddonPreferences):
# Properties
class BsurfacesProps(PropertyGroup):
- SURFSK_cyclic_cross = BoolProperty(
+ SURFSK_cyclic_cross: BoolProperty(
name="Cyclic Cross",
description="Make cyclic the face-loops crossing the strokes",
default=False
)
- SURFSK_cyclic_follow = BoolProperty(
+ SURFSK_cyclic_follow: BoolProperty(
name="Cyclic Follow",
description="Make cyclic the face-loops following the strokes",
default=False
)
- SURFSK_keep_strokes = BoolProperty(
+ SURFSK_keep_strokes: BoolProperty(
name="Keep strokes",
description="Keeps the sketched strokes or curves after adding the surface",
default=False
)
- SURFSK_automatic_join = BoolProperty(
+ SURFSK_automatic_join: BoolProperty(
name="Automatic join",
description="Join automatically vertices of either surfaces "
"generated by crosshatching, or from the borders of closed shapes",
default=True
)
- SURFSK_loops_on_strokes = BoolProperty(
+ SURFSK_loops_on_strokes: BoolProperty(
name="Loops on strokes",
description="Make the loops match the paths of the strokes",
default=True
)
- SURFSK_precision = IntProperty(
+ SURFSK_precision: IntProperty(
name="Precision",
description="Precision level of the surface calculation",
default=2,