From f4cc74ec18f36097a30f5564ba67936c067690f1 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Sat, 31 Dec 2011 05:40:45 +0000
Subject: [PATCH] remove unneeded check for parent

---
 io_anim_bvh/import_bvh.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py
index f83ef7f2b..484075074 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,
-- 
GitLab