Skip to content

Commit a773f92

Browse files
fixed last frame in tokenize method
1 parent b7e0058 commit a773f92

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎bvh.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def tokenize(self):
5858
elif accumulator:
5959
first_round.append(re.split('\\s+', accumulator.strip()))
6060
accumulator = ''
61+
else: #at the end of the loop, appends the current contents of the accumulator if it is not empty
62+
if accumulator:
63+
first_round.append(re.split('\\s+', accumulator.strip()))
64+
accumulator = ''
6165
node_stack = [self.root]
6266
frame_time_found = False
6367
node = None

0 commit comments

Comments
 (0)