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/properties.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/properties.py')
-rw-r--r-- | space_view3d_stored_views/properties.py | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/space_view3d_stored_views/properties.py b/space_view3d_stored_views/properties.py index 8fb280d4..2c4adee3 100644 --- a/space_view3d_stored_views/properties.py +++ b/space_view3d_stored_views/properties.py @@ -16,41 +16,41 @@ from bpy.props import ( class POVData(PropertyGroup): - distance = FloatProperty() - location = FloatVectorProperty( + distance: FloatProperty() + location: FloatVectorProperty( subtype='TRANSLATION' ) - rotation = FloatVectorProperty( + rotation: FloatVectorProperty( subtype='QUATERNION', size=4 ) - name = StringProperty() - perspective = EnumProperty( + name: StringProperty() + perspective: EnumProperty( items=[('PERSP', '', ''), ('ORTHO', '', ''), ('CAMERA', '', '')] ) - lens = FloatProperty() - clip_start = FloatProperty() - clip_end = FloatProperty() - lock_cursor = BoolProperty() - cursor_location = FloatVectorProperty() - perspective_matrix_md5 = StringProperty() - camera_name = StringProperty() - camera_type = StringProperty() - lock_object_name = StringProperty() + lens: FloatProperty() + clip_start: FloatProperty() + clip_end: FloatProperty() + lock_cursor: BoolProperty() + cursor_location: FloatVectorProperty() + perspective_matrix_md5: StringProperty() + camera_name: StringProperty() + camera_type: StringProperty() + lock_object_name: StringProperty() class LayersData(PropertyGroup): view_layers = BoolVectorProperty(size=20) scene_layers = BoolVectorProperty(size=20) - lock_camera_and_layers = BoolProperty() - name = StringProperty() + lock_camera_and_layers: BoolProperty() + name: StringProperty() class DisplayData(PropertyGroup): - name = StringProperty() - viewport_shade = EnumProperty( + name: StringProperty() + viewport_shade: EnumProperty( items=[('BOUNDBOX', 'BOUNDBOX', 'BOUNDBOX'), ('WIREFRAME', 'WIREFRAME', 'WIREFRAME'), ('SOLID', 'SOLID', 'SOLID'), @@ -58,23 +58,23 @@ class DisplayData(PropertyGroup): ('MATERIAL', 'MATERIAL', 'MATERIAL'), ('RENDERED', 'RENDERED', 'RENDERED')] ) - show_only_render = BoolProperty() - show_outline_selected = BoolProperty() - show_all_objects_origin = BoolProperty() - show_relationship_lines = BoolProperty() - show_floor = BoolProperty() - show_axis_x = BoolProperty() - show_axis_y = BoolProperty() - show_axis_z = BoolProperty() - grid_lines = IntProperty() - grid_scale = FloatProperty() - grid_subdivisions = IntProperty() - material_mode = StringProperty() - show_textured_solid = BoolProperty() - quad_view = BoolProperty() - lock_rotation = BoolProperty() - show_sync_view = BoolProperty() - use_box_clip = BoolProperty() + show_only_render: BoolProperty() + show_outline_selected: BoolProperty() + show_all_objects_origin: BoolProperty() + show_relationship_lines: BoolProperty() + show_floor: BoolProperty() + show_axis_x: BoolProperty() + show_axis_y: BoolProperty() + show_axis_z: BoolProperty() + grid_lines: IntProperty() + grid_scale: FloatProperty() + grid_subdivisions: IntProperty() + material_mode: StringProperty() + show_textured_solid: BoolProperty() + quad_view: BoolProperty() + lock_rotation: BoolProperty() + show_sync_view: BoolProperty() + use_box_clip: BoolProperty() class ViewData(PropertyGroup): @@ -87,23 +87,23 @@ class ViewData(PropertyGroup): display = PointerProperty( type=DisplayData ) - name = StringProperty() + name: StringProperty() class StoredViewsData(PropertyGroup): - pov_list = CollectionProperty( + pov_list: CollectionProperty( type=POVData ) - layers_list = CollectionProperty( + layers_list: CollectionProperty( type=LayersData ) - display_list = CollectionProperty( + display_list: CollectionProperty( type=DisplayData ) - view_list = CollectionProperty( + view_list: CollectionProperty( type=ViewData ) - mode = EnumProperty( + mode: EnumProperty( name="Mode", items=[('VIEW', "View", "3D View settings"), ('POV', "POV", "POV settings"), @@ -115,6 +115,6 @@ class StoredViewsData(PropertyGroup): size=4, default=[-1, -1, -1, -1] ) - view_modified = BoolProperty( + view_modified: BoolProperty( default=False ) |