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 /io_scene_3ds | |
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 'io_scene_3ds')
-rw-r--r-- | io_scene_3ds/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/io_scene_3ds/__init__.py b/io_scene_3ds/__init__.py index 4daa4c29..b2ea526e 100644 --- a/io_scene_3ds/__init__.py +++ b/io_scene_3ds/__init__.py @@ -63,9 +63,9 @@ class Import3DS(bpy.types.Operator, ImportHelper): bl_options = {'UNDO'} filename_ext = ".3ds" - filter_glob = StringProperty(default="*.3ds", options={'HIDDEN'}) + filter_glob: StringProperty(default="*.3ds", options={'HIDDEN'}) - constrain_size = FloatProperty( + constrain_size: FloatProperty( name="Size Constraint", description="Scale the model by 10 until it reaches the " "size constraint (0 to disable)", @@ -73,13 +73,13 @@ class Import3DS(bpy.types.Operator, ImportHelper): soft_min=0.0, soft_max=1000.0, default=10.0, ) - use_image_search = BoolProperty( + use_image_search: BoolProperty( name="Image Search", description="Search subdirectories for any associated images " "(Warning, may be slow)", default=True, ) - use_apply_transform = BoolProperty( + use_apply_transform: BoolProperty( name="Apply Transform", description="Workaround for object transformations " "importing incorrectly", @@ -109,12 +109,12 @@ class Export3DS(bpy.types.Operator, ExportHelper): bl_label = 'Export 3DS' filename_ext = ".3ds" - filter_glob = StringProperty( + filter_glob: StringProperty( default="*.3ds", options={'HIDDEN'}, ) - use_selection = BoolProperty( + use_selection: BoolProperty( name="Selection Only", description="Export selected objects only", default=False, |