From a773f92496bcdd0cf82708b5f12ba769120ee57d Mon Sep 17 00:00:00 2001 From: sherjeelshehzad <46946932+sherjeelshehzad@users.noreply.github.com> Date: Tue, 3 Dec 2019 12:30:32 +1300 Subject: [PATCH] fixed last frame in tokenize method --- bvh.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bvh.py b/bvh.py index 40fc5a2..19276c9 100644 --- a/bvh.py +++ b/bvh.py @@ -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