From 31ddda3bf0bffe50a6c5e9610f52e19ddd21bc1c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 15 Sep 2010 03:33:49 +0000 Subject: [PATCH] bvh import was broken for non euler-native rotations --- release/scripts/op/io_anim_bvh/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/release/scripts/op/io_anim_bvh/__init__.py b/release/scripts/op/io_anim_bvh/__init__.py index c059c6bb2d0..b8bdec592bc 100644 --- a/release/scripts/op/io_anim_bvh/__init__.py +++ b/release/scripts/op/io_anim_bvh/__init__.py @@ -39,7 +39,7 @@ class BvhImporter(bpy.types.Operator, ImportHelper): scale = FloatProperty(name="Scale", description="Scale the BVH by this value", min=0.0001, max=1000000.0, soft_min=0.001, soft_max=100.0, default=0.1) frame_start = IntProperty(name="Start Frame", description="Starting frame for the animation", default=1) - loop = BoolProperty(name="Loop", description="Loop the animation playback", default=False) + use_cyclic = BoolProperty(name="Loop", description="Loop the animation playback", default=False) rotate_mode = EnumProperty(items=( ('QUATERNION', "Quaternion", "Convert rotations to quaternions"), ('NATIVE', "Euler (Native)", "Use the rotation order defined in the BVH file"), @@ -56,7 +56,13 @@ class BvhImporter(bpy.types.Operator, ImportHelper): def execute(self, context): import io_anim_bvh.import_bvh - return io_anim_bvh.import_bvh.load(self, context, **self.properties) + return io_anim_bvh.import_bvh.load(self, context, + filepath=self.filepath, + rotate_mode=self.rotate_mode, + scale=self.scale, + use_cyclic=self.use_cyclic, + frame_start=self.frame_start, + ) def menu_func(self, context):