From 9c464c705ef8ef0ecc2aa674beaaf89460e70d3d Mon Sep 17 00:00:00 2001 From: Ben Connors Date: Tue, 28 May 2019 17:46:52 -0400 Subject: Bugfixes - Fix Chaser.render to handle new Chaser.next_step return format --- blc/workspace.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blc/workspace.py b/blc/workspace.py index 00848c3..1aa6712 100755 --- a/blc/workspace.py +++ b/blc/workspace.py @@ -495,6 +495,10 @@ class Chaser(Function, Advanceable, PreRenderable): [(step number, step data), ...] """ + @property + def current_step(self): + return self.step_data[-1][0] if self.step_data else -1 + def __init__(self, step_data, obey_loop, forward): self.step_data = step_data self.obey_loop = obey_loop @@ -565,7 +569,7 @@ class Chaser(Function, Advanceable, PreRenderable): ## Figure out if we're fading out or in svs.append((t > (sd.start_time+sd.end_time), sv)) if t >= sd.start_time + sd.end_time and i+1 == len(data.step_data): ## Add the next step - nsn = self.next_step(sn) + nsn, data = self.next_step(data) if nsn != -1: ## Still another step to do nss = sd.start_time + sd.end_time data.step_data.append((nsn, self.steps[nsn].get_data(nss))) -- cgit v1.2.3