Skip to content

Commit

Permalink
fixed last frame in tokenize method
Browse files Browse the repository at this point in the history
  • Loading branch information
sherjeelshehzad authored Dec 2, 2019
1 parent b7e0058 commit a773f92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bvh.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def tokenize(self):
elif accumulator:
first_round.append(re.split('\\s+', accumulator.strip()))
accumulator = ''
else: #at the end of the loop, appends the current contents of the accumulator if it is not empty
if accumulator:
first_round.append(re.split('\\s+', accumulator.strip()))
accumulator = ''
node_stack = [self.root]
frame_time_found = False
node = None
Expand Down

0 comments on commit a773f92

Please sign in to comment.