Skip to content

Commit

Permalink
Explicit check for None to fix ubo system error
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed May 31, 2024
1 parent 210c7e5 commit 7c2bac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluesky/ui/qtgl/glhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def select(self):
def update_ubo(self, uboname, *args, **kwargs):
''' Update an uniform buffer object of this shader set. '''
ubo = self._ubos.get(uboname, None)
if not ubo:
if ubo is None:
raise KeyError('Uniform Buffer Object', uboname,
'not found in shader set.')
ubo.update(*args, **kwargs)
Expand Down

0 comments on commit 7c2bac2

Please sign in to comment.