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
Branches
No related tags found
No related merge requests found
...@@ -409,10 +409,10 @@ def bvh_node_dict2armature(context, ...@@ -409,10 +409,10 @@ def bvh_node_dict2armature(context,
bvh_node.temp.parent = bvh_node.parent.temp bvh_node.temp.parent = bvh_node.parent.temp
# Set the connection state # Set the connection state
if not bvh_node.has_loc and\ 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.temp.name not in ZERO_AREA_BONES and\ (bvh_node.parent.rest_tail_local == bvh_node.rest_head_local)):
bvh_node.parent.rest_tail_local == bvh_node.rest_head_local:
bvh_node.temp.use_connect = True bvh_node.temp.use_connect = True
# Replace the editbone with the editbone name, # Replace the editbone with the editbone name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment