Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/nfrechette/acl into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrechette committed Sep 29, 2017
2 parents 7e198fb + 0cbbdba commit 98724ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/fbx2acl/fbx2acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ def is_track_default(track, default_value, error_threshold = 0.000001):
# Everything is equal, we are a default track
return True

def parse_tracks(scene, clip, bones, nodes):
def parse_tracks(scene, anim_stack, clip, bones, nodes):
tracks = []

scene.SetCurrentAnimationStack(anim_stack)

root_node = scene.GetRootNode()
anim_evaluator = scene.GetAnimationEvaluator()

Expand Down Expand Up @@ -319,7 +321,7 @@ def convert_file(fbx_filename, anim_stack_name, acl_filename, zip):
clip = parse_clip(scene, anim_stack)
nodes = parse_hierarchy(scene)
bones = parse_bind_pose(scene, nodes)
tracks = parse_tracks(scene, clip, bones, nodes)
tracks = parse_tracks(scene, anim_stack, clip, bones, nodes)

# If we don't provide an ACL filename, we'll write to STDOUT
# If we provide an ACL filename but not '-zip', we'll output the raw file
Expand Down

0 comments on commit 98724ce

Please sign in to comment.