diff options
| author | Ben Connors <benconnors@outlook.com> | 2019-05-28 17:46:52 -0400 | 
|---|---|---|
| committer | Ben Connors <benconnors@outlook.com> | 2019-05-28 17:46:52 -0400 | 
| commit | 9c464c705ef8ef0ecc2aa674beaaf89460e70d3d (patch) | |
| tree | f38d7eef8ffbe422b820f50d43b78bb7d3e2e3cf | |
| parent | bb13db1fcb785b4ca5046a08d83d2503e8252848 (diff) | |
Bugfixes
- Fix Chaser.render to handle new Chaser.next_step return format
| -rwxr-xr-x | blc/workspace.py | 6 | 
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))) | 
