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 /space_view3d_stored_views/io.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 'space_view3d_stored_views/io.py')
-rw-r--r-- | space_view3d_stored_views/io.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/space_view3d_stored_views/io.py b/space_view3d_stored_views/io.py index 69c5b02b..a3125fcc 100644 --- a/space_view3d_stored_views/io.py +++ b/space_view3d_stored_views/io.py @@ -209,11 +209,11 @@ class VIEW3D_stored_views_import(Operator, ImportHelper): bl_description = "Import a .blsv preset file to the current Stored Views" filename_ext = ".blsv" - filter_glob = StringProperty( + filter_glob: StringProperty( default="*.blsv", options={'HIDDEN'} ) - replace = BoolProperty( + replace: BoolProperty( name="Replace", default=True, description="Replace current stored views, otherwise append" @@ -258,12 +258,12 @@ class VIEW3D_stored_views_import_from_scene(Operator): bl_label = "Import stored views from scene" bl_description = "Import currently stored views from an another scene" - scene_name = StringProperty( + scene_name: StringProperty( name="Scene Name", description="A current blend scene", default="" ) - replace = BoolProperty( + replace: BoolProperty( name="Replace", default=True, description="Replace current stored views, otherwise append" @@ -306,14 +306,14 @@ class VIEW3D_stored_views_export(Operator, ExportHelper): bl_description = "Export the current Stored Views to a .blsv preset file" filename_ext = ".blsv" - filepath = StringProperty( + filepath: StringProperty( default=os.path.join(IO_Utils.get_preset_path()[0], "untitled") ) - filter_glob = StringProperty( + filter_glob: StringProperty( default="*.blsv", options={'HIDDEN'} ) - preset_name = StringProperty( + preset_name: StringProperty( name="Preset name", default="", description="Name of the stored views preset" |