Mercurial > code > home > repos > light9
changeset 2336:47f7f5ac81e8
skip effect compute if we have no devs for the effect
author | drewp@bigasterisk.com |
---|---|
date | Fri, 02 Jun 2023 16:15:20 -0700 |
parents | 54cf7034bee0 |
children | c1fa4f7fe5d1 |
files | light9/effect/effecteval2.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/effect/effecteval2.py Fri Jun 02 14:54:11 2023 -0700 +++ b/light9/effect/effecteval2.py Fri Jun 02 16:15:20 2023 -0700 @@ -92,6 +92,9 @@ for arg in c.funcArgs: if arg.annotation == DeviceSettings: v = c.devSettings + if v is None: # asked for ds but we have none + log.debug("%s asked for devs but we have none in config", self.uri) + return DeviceSettings(self.graph, []) elif arg.name == 'songTime': v = songTime else: