diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-11 02:57:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-11 02:57:27 +0400 |
commit | 488e1da935d55330be55eb30b4605b993dd65dbd (patch) | |
tree | d4437d5e74e962482a4a6aa5336212c257f0245e /io_anim_bvh | |
parent | 8012053e1e178c8cabb133e05dc1e36d52908fa7 (diff) |
cleanup
- remove/comment unused variables
- remove unused imports
- fixed some bugs using incorrect variables
Diffstat (limited to 'io_anim_bvh')
-rw-r--r-- | io_anim_bvh/export_bvh.py | 9 | ||||
-rw-r--r-- | io_anim_bvh/import_bvh.py | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/io_anim_bvh/export_bvh.py b/io_anim_bvh/export_bvh.py index 851eb1cc..3b70033b 100644 --- a/io_anim_bvh/export_bvh.py +++ b/io_anim_bvh/export_bvh.py @@ -37,7 +37,7 @@ def write_armature(context, rot_order_str = "XYZ" return rot_order_str - from mathutils import Matrix, Vector, Euler + from mathutils import Matrix, Euler from math import degrees file = open(filepath, "w", encoding="utf8", newline="\n") @@ -180,7 +180,7 @@ def write_armature(context, self.pose_mat = self.pose_bone.matrix - mat = self.rest_bone.matrix + # mat = self.rest_bone.matrix # UNUSED self.rest_arm_mat = self.rest_bone.matrix_local self.rest_local_mat = self.rest_bone.matrix @@ -274,8 +274,3 @@ def save(operator, context, filepath="", ) return {'FINISHED'} - - -if __name__ == "__main__": - scene = bpy.context.scene - _read(bpy.data.filepath.rstrip(".blend") + ".bvh", bpy.context.object, scene.frame_start, scene.frame_end, 1.0) diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py index 4f1d19ff..b4460853 100644 --- a/io_anim_bvh/import_bvh.py +++ b/io_anim_bvh/import_bvh.py @@ -20,11 +20,9 @@ # Script copyright (C) Campbell Barton -import math from math import radians import bpy -import mathutils from mathutils import Vector, Euler, Matrix |