Skip to content
Snippets Groups Projects
Commit f4cc74ec authored by Campbell Barton's avatar Campbell Barton
Browse files

remove unneeded check for parent

parent cb5a35b7
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment