Skip to content

Commit

Permalink
converter: Do not crash on bone parents
Browse files Browse the repository at this point in the history
Bone parents still need to be handled properly
  • Loading branch information
Moguri committed May 1, 2018
1 parent dcb5bb0 commit 285468b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ def create_character(self, gltf_node, gltf_skin, gltf_mesh, gltf_data):

def create_joint(parent, node, transform):
#print("Creating joint for:", node['name'])
if 'jointName' not in node:
return
inv_transform = LMatrix4(transform)
inv_transform.invert_in_place()
joint_index = None
Expand Down

0 comments on commit 285468b

Please sign in to comment.