About | Log | Files | Refs
commit 9c464c705ef8ef0ecc2aa674beaaf89460e70d3d
parent bb13db1fcb785b4ca5046a08d83d2503e8252848
Author: Ben Connors <benconnors@outlook.com>
Date: Tue, 28 May 2019 17:46:52 -0400
Bugfixes
- Fix Chaser.render to handle new Chaser.next_step return format
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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)))