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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-03-24 11:59:35 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-03-24 11:59:35 +0300
commit812130fd0b0a54df16f233e78af176868e8deae6 (patch)
treee634b0156daaa07f823050c704a491639ece4d41 /io_anim_bvh
parentb1a53b343db65812416f5a877317a5e6bb69afa0 (diff)
Fix T44089: restore default orientation axes of each addons to stae before rBAbfbabc0592b8.
Now using a class factory to allow customization of those defaults axes, still way less verbose than previous code!
Diffstat (limited to 'io_anim_bvh')
-rw-r--r--io_anim_bvh/__init__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/io_anim_bvh/__init__.py b/io_anim_bvh/__init__.py
index e7d6c7b2..f845bcf2 100644
--- a/io_anim_bvh/__init__.py
+++ b/io_anim_bvh/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "BioVision Motion Capture (BVH) format",
"author": "Campbell Barton",
- "blender": (2, 73, 0),
+ "blender": (2, 74, 0),
"location": "File > Import-Export",
"description": "Import-Export BVH from armature objects",
"warning": "",
@@ -46,12 +46,15 @@ from bpy.props import (StringProperty,
)
from bpy_extras.io_utils import (ImportHelper,
ExportHelper,
- OrientationHelper,
+ orientation_helper_factory,
axis_conversion,
)
-class ImportBVH(bpy.types.Operator, ImportHelper, OrientationHelper):
+ImportBVHOrientationHelper = orientation_helper_factory("ImportBVHOrientationHelper", axis_forward='-Z', axis_up='Y')
+
+
+class ImportBVH(bpy.types.Operator, ImportHelper, ImportBVHOrientationHelper):
"""Load a BVH motion capture file"""
bl_idname = "import_anim.bvh"
bl_label = "Import BVH"