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 /object_fracture
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 'object_fracture')
-rw-r--r--object_fracture/fracture_ops.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py
index d2f88159..9cfcfb82 100644
--- a/object_fracture/fracture_ops.py
+++ b/object_fracture/fracture_ops.py
@@ -346,21 +346,21 @@ class FractureSimple(bpy.types.Operator):
bl_label = "Fracture Object"
bl_options = {'REGISTER', 'UNDO'}
- exe = BoolProperty(name="Execute",
+ exe: BoolProperty(name="Execute",
description="If it shall actually run, for optimal performance",
default=False)
- hierarchy = BoolProperty(name="Generate hierarchy",
+ hierarchy: BoolProperty(name="Generate hierarchy",
description="Hierarchy is useful for simulation of objects" \
" breaking in motion",
default=False)
- nshards = IntProperty(name="Number of shards",
+ nshards: IntProperty(name="Number of shards",
description="Number of shards the object should be split into",
min=2,
default=5)
- crack_type = EnumProperty(name='Crack type',
+ crack_type: EnumProperty(name='Crack type',
items=(
('FLAT', 'Flat', 'a'),
('FLAT_ROUGH', 'Flat rough', 'a'),
@@ -369,7 +369,7 @@ class FractureSimple(bpy.types.Operator):
description='Look of the fracture surface',
default='FLAT')
- roughness = FloatProperty(name="Roughness",
+ roughness: FloatProperty(name="Roughness",
description="Roughness of the fracture surface",
min=0.0,
max=3.0,
@@ -399,11 +399,11 @@ class FractureGroup(bpy.types.Operator):
bl_label = "Fracture Object (Group)"
bl_options = {'REGISTER', 'UNDO'}
- exe = BoolProperty(name="Execute",
+ exe: BoolProperty(name="Execute",
description="If it shall actually run, for optimal performance",
default=False)
- group = StringProperty(name="Group",
+ group: StringProperty(name="Group",
description="Specify the group used for fracturing")
# e = []