From 488e1da935d55330be55eb30b4605b993dd65dbd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 10 Jul 2011 22:57:27 +0000 Subject: cleanup - remove/comment unused variables - remove unused imports - fixed some bugs using incorrect variables --- io_anim_bvh/export_bvh.py | 9 ++------- io_anim_bvh/import_bvh.py | 2 -- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'io_anim_bvh') 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 -- cgit v1.2.3