summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xblc/workspace.py6
1 files changed, 5 insertions, 1 deletions
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)))