diff options
author | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
commit | aeabdc02a83a976b2f594cd66873c6d2b537e669 (patch) | |
tree | 3ac5922be25219ab666aae4b8d04002bce2e70a6 /archimesh/achm_books_maker.py | |
parent | ba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (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 'archimesh/achm_books_maker.py')
-rw-r--r-- | archimesh/achm_books_maker.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/archimesh/achm_books_maker.py b/archimesh/achm_books_maker.py index 1c78f8b7..f7fa58ee 100644 --- a/archimesh/achm_books_maker.py +++ b/archimesh/achm_books_maker.py @@ -45,52 +45,52 @@ class AchmBooks(Operator): bl_category = 'Archimesh' bl_options = {'REGISTER', 'UNDO'} - width = FloatProperty( + width: FloatProperty( name='Width', min=0.001, max=1, default=0.045, precision=3, description='Bounding book width', ) - depth = FloatProperty( + depth: FloatProperty( name='Depth', min=0.001, max=1, default=0.22, precision=3, description='Bounding book depth', ) - height = FloatProperty( + height: FloatProperty( name='Height', min=0.001, max=1, default=0.30, precision=3, description='Bounding book height', ) - num = IntProperty( + num: IntProperty( name='Number of books', min=1, max=100, default=20, description='Number total of books', ) - rX = FloatProperty( + rX: FloatProperty( name='X', min=0.000, max=0.999, default=0, precision=3, description='Randomness for X axis', ) - rY = FloatProperty( + rY: FloatProperty( name='Y', min=0.000, max=0.999, default=0, precision=3, description='Randomness for Y axis', ) - rZ = FloatProperty( + rZ: FloatProperty( name='Z', min=0.000, max=0.999, default=0, precision=3, description='Randomness for Z axis', ) - rot = FloatProperty( + rot: FloatProperty( name='Rotation', min=0.000, max=1, default=0, precision=3, description='Randomness for vertical position (0-> All straight)', ) - afn = IntProperty( + afn: IntProperty( name='Affinity', min=0, max=10, default=5, description='Number of books with same rotation angle', ) # Materials - crt_mat = BoolProperty( + crt_mat: BoolProperty( name="Create default Cycles materials", description="Create default materials for Cycles render", default=True, ) - objcol = FloatVectorProperty( + objcol: FloatVectorProperty( name="Color", description="Color for material", default=(1.0, 1.0, 1.0, 1.0), @@ -98,7 +98,7 @@ class AchmBooks(Operator): subtype='COLOR', size=4, ) - rC = FloatProperty( + rC: FloatProperty( name='Randomness', min=0.000, max=1, default=0, precision=3, description='Randomness for color ', |