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 /add_mesh_extra_objects/add_mesh_pyramid.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 'add_mesh_extra_objects/add_mesh_pyramid.py')
-rw-r--r--add_mesh_extra_objects/add_mesh_pyramid.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py
index 680267cb..ec41cc4f 100644
--- a/add_mesh_extra_objects/add_mesh_pyramid.py
+++ b/add_mesh_extra_objects/add_mesh_pyramid.py
@@ -107,31 +107,31 @@ class AddPyramid(Operator, AddObjectHelper):
bl_description = "Construct a step pyramid mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- num_sides = IntProperty(
+ num_sides: IntProperty(
name="Number Sides",
description="How many sides each step will have",
min=3, max=20,
default=4
)
- num_steps = IntProperty(
+ num_steps: IntProperty(
name="Number of Steps",
description="How many steps for the overall pyramid",
min=1, max=20,
default=10
)
- width = FloatProperty(
+ width: FloatProperty(
name="Initial Width",
description="Initial base step width",
min=0.01, max=100.0,
default=2
)
- height = FloatProperty(
+ height: FloatProperty(
name="Height",
description="How tall each step will be",
min=0.01, max=100.0,
default=0.1
)
- reduce_by = FloatProperty(
+ reduce_by: FloatProperty(
name="Reduce Step By",
description="How much to reduce each succeeding step by",
min=.01, max=2.0,