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_anim_nuke_chan/__init__.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 'io_anim_nuke_chan/__init__.py')
-rw-r--r-- | io_anim_nuke_chan/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/io_anim_nuke_chan/__init__.py b/io_anim_nuke_chan/__init__.py index 9266c439..f562244e 100644 --- a/io_anim_nuke_chan/__init__.py +++ b/io_anim_nuke_chan/__init__.py @@ -74,20 +74,20 @@ class ImportChan(Operator, ImportHelper): filename_ext = ".chan" - filter_glob = StringProperty(default="*.chan", options={'HIDDEN'}) + filter_glob: StringProperty(default="*.chan", options={'HIDDEN'}) rotation_order = rotation_order - z_up = BoolProperty( + z_up: BoolProperty( name="Make Z up", description="Switch the Y and Z axis", default=True) - sensor_width = FloatProperty( + sensor_width: FloatProperty( name="Camera sensor width", description="Imported camera sensor width", default=32.0) - sensor_height = FloatProperty( + sensor_height: FloatProperty( name="Camera sensor height", description="Imported camera sensor height", default=18.0) @@ -113,8 +113,8 @@ class ExportChan(Operator, ExportHelper): bl_label = "Export chan file" filename_ext = ".chan" - filter_glob = StringProperty(default="*.chan", options={'HIDDEN'}) - y_up = BoolProperty( + filter_glob: StringProperty(default="*.chan", options={'HIDDEN'}) + y_up: BoolProperty( name="Make Y up", description="Switch the Y and Z axis", default=True) |