diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-09-28 21:57:39 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-09-28 21:58:23 +0300 |
commit | 345d7ace8756781708ae2dd3f8912be498ebffff (patch) | |
tree | 6766012c85ed760f58bc28a380fd82ff531bd188 /io_scene_3ds | |
parent | cd90aa081b33a579f12f2b4a9f1452ce68c6d2c4 (diff) |
Use orientation_helper decorator
The warnings in the console are getting on the way. May as well update
the addons even if they are still mostly not ported to 2.8.
We can probably ditch orientation_helper_factory altogether.
Diffstat (limited to 'io_scene_3ds')
-rw-r--r-- | io_scene_3ds/__init__.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/io_scene_3ds/__init__.py b/io_scene_3ds/__init__.py index 4377674d..4daa4c29 100644 --- a/io_scene_3ds/__init__.py +++ b/io_scene_3ds/__init__.py @@ -50,15 +50,13 @@ from bpy.props import ( from bpy_extras.io_utils import ( ImportHelper, ExportHelper, - orientation_helper_factory, + orientation_helper, axis_conversion, ) -IO3DSOrientationHelper = orientation_helper_factory("IO3DSOrientationHelper", axis_forward='Y', axis_up='Z') - - -class Import3DS(bpy.types.Operator, ImportHelper, IO3DSOrientationHelper): +@orientation_helper(axis_forward='Y', axis_up='Z') +class Import3DS(bpy.types.Operator, ImportHelper): """Import from 3DS file format (.3ds)""" bl_idname = "import_scene.autodesk_3ds" bl_label = 'Import 3DS' @@ -104,7 +102,8 @@ class Import3DS(bpy.types.Operator, ImportHelper, IO3DSOrientationHelper): return import_3ds.load(self, context, **keywords) -class Export3DS(bpy.types.Operator, ExportHelper, IO3DSOrientationHelper): +@orientation_helper(axis_forward='Y', axis_up='Z') +class Export3DS(bpy.types.Operator, ExportHelper): """Export to 3DS file format (.3ds)""" bl_idname = "export_scene.autodesk_3ds" bl_label = 'Export 3DS' |