[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31930] trunk/blender/release/scripts/op/ io_anim_bvh/__init__.py: bvh import was broken for non euler-native rotations
Campbell Barton
ideasman42 at gmail.com
Wed Sep 15 05:33:53 CEST 2010
Revision: 31930
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31930
Author: campbellbarton
Date: 2010-09-15 05:33:49 +0200 (Wed, 15 Sep 2010)
Log Message:
-----------
bvh import was broken for non euler-native rotations
Modified Paths:
--------------
trunk/blender/release/scripts/op/io_anim_bvh/__init__.py
Modified: trunk/blender/release/scripts/op/io_anim_bvh/__init__.py
===================================================================
--- trunk/blender/release/scripts/op/io_anim_bvh/__init__.py 2010-09-14 23:41:11 UTC (rev 31929)
+++ trunk/blender/release/scripts/op/io_anim_bvh/__init__.py 2010-09-15 03:33:49 UTC (rev 31930)
@@ -39,7 +39,7 @@
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 @@
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):
More information about the Bf-blender-cvs
mailing list