diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-31 09:40:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-31 09:40:45 +0400 |
commit | f4cc74ec18f36097a30f5564ba67936c067690f1 (patch) | |
tree | 66e8eabd7a474888ffc1ef9f01f026c8cd439054 /io_anim_bvh | |
parent | cb5a35b7d5adce69e04429d10aaddd0a74764c9b (diff) |
remove unneeded check for parent
Diffstat (limited to 'io_anim_bvh')
-rw-r--r-- | io_anim_bvh/import_bvh.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py index f83ef7f2..48407507 100644 --- a/io_anim_bvh/import_bvh.py +++ b/io_anim_bvh/import_bvh.py @@ -409,10 +409,10 @@ def bvh_node_dict2armature(context, bvh_node.temp.parent = bvh_node.parent.temp # Set the connection state - if not bvh_node.has_loc and\ - bvh_node.parent and\ - bvh_node.parent.temp.name not in ZERO_AREA_BONES and\ - bvh_node.parent.rest_tail_local == bvh_node.rest_head_local: + if((not bvh_node.has_loc) and + (bvh_node.parent.temp.name not in ZERO_AREA_BONES) and + (bvh_node.parent.rest_tail_local == bvh_node.rest_head_local)): + bvh_node.temp.use_connect = True # Replace the editbone with the editbone name, |