Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-09-28 21:57:39 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-09-28 21:58:23 +0300
commit345d7ace8756781708ae2dd3f8912be498ebffff (patch)
tree6766012c85ed760f58bc28a380fd82ff531bd188 /io_anim_bvh
parentcd90aa081b33a579f12f2b4a9f1452ce68c6d2c4 (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_anim_bvh')
-rw-r--r--io_anim_bvh/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/io_anim_bvh/__init__.py b/io_anim_bvh/__init__.py
index 1655a783..c9b5dfdf 100644
--- a/io_anim_bvh/__init__.py
+++ b/io_anim_bvh/__init__.py
@@ -49,15 +49,13 @@ from bpy.props import (
from bpy_extras.io_utils import (
ImportHelper,
ExportHelper,
- orientation_helper_factory,
+ orientation_helper,
axis_conversion,
)
-ImportBVHOrientationHelper = orientation_helper_factory("ImportBVHOrientationHelper", axis_forward='-Z', axis_up='Y')
-
-
-class ImportBVH(bpy.types.Operator, ImportHelper, ImportBVHOrientationHelper):
+@orientation_helper(axis_forward='-Z', axis_up='Y')
+class ImportBVH(bpy.types.Operator, ImportHelper):
"""Load a BVH motion capture file"""
bl_idname = "import_anim.bvh"
bl_label = "Import BVH"