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_venetian_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_venetian_maker.py')
-rw-r--r-- | archimesh/achm_venetian_maker.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/archimesh/achm_venetian_maker.py b/archimesh/achm_venetian_maker.py index 57adf0ef..01d0c422 100644 --- a/archimesh/achm_venetian_maker.py +++ b/archimesh/achm_venetian_maker.py @@ -328,38 +328,38 @@ def shape_mesh_and_create_children(mainobject, tmp_mesh, update=False): # Define property group class to create or modify # ------------------------------------------------------------------ class ObjectProperties(PropertyGroup): - width = FloatProperty( + width: FloatProperty( name='Width', min=0.30, max=4, default=1, precision=3, description='Total width', update=update_object, ) - height = FloatProperty( + height: FloatProperty( name='Height', min=0.20, max=10, default=1.7, precision=3, description='Total height', update=update_object, ) - depth = FloatProperty( + depth: FloatProperty( name='Slat depth', min=0.02, max=0.30, default=0.04, precision=3, description='Slat depth', update=update_object, ) - angle = FloatProperty( + angle: FloatProperty( name='Angle', min=0, max=85, default=0, precision=1, description='Angle of the slats', update=update_object, ) - ratio = IntProperty( + ratio: IntProperty( name='Extend', min=0, max=100, default=100, description='% of extension (100 full extend)', update=update_object, ) # Materials - crt_mat = BoolProperty( + crt_mat: BoolProperty( name="Create default Cycles materials", description="Create default materials for Cycles render", default=True, update=update_object, ) - objcol = FloatVectorProperty( + objcol: FloatVectorProperty( name="Color", description="Color for material", default=(0.616, 0.435, 1.0, 1.0), |