Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-31 09:40:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-31 09:40:45 +0400
commitf4cc74ec18f36097a30f5564ba67936c067690f1 (patch)
tree66e8eabd7a474888ffc1ef9f01f026c8cd439054 /io_anim_bvh/import_bvh.py
parentcb5a35b7d5adce69e04429d10aaddd0a74764c9b (diff)
remove unneeded check for parent
Diffstat (limited to 'io_anim_bvh/import_bvh.py')
-rw-r--r--io_anim_bvh/import_bvh.py8
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,