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_vrml2 | |
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_vrml2')
-rw-r--r-- | io_scene_vrml2/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/io_scene_vrml2/__init__.py b/io_scene_vrml2/__init__.py index 18821623..4a420f70 100644 --- a/io_scene_vrml2/__init__.py +++ b/io_scene_vrml2/__init__.py @@ -47,16 +47,14 @@ from bpy.props import ( ) from bpy_extras.io_utils import ( ExportHelper, - orientation_helper_factory, + orientation_helper, path_reference_mode, axis_conversion, ) -ExportVRMLOrientationHelper = orientation_helper_factory("ExportVRMLOrientationHelper", axis_forward='Z', axis_up='Y') - - -class ExportVRML(bpy.types.Operator, ExportHelper, ExportVRMLOrientationHelper): +@orientation_helper(axis_forward='Z', axis_up='Y') +class ExportVRML(bpy.types.Operator, ExportHelper): """Export mesh objects as a VRML2, colors and texture coordinates""" bl_idname = "export_scene.vrml2" bl_label = "Export VRML2" |