diff --git a/bluesky/ui/qtgl/glhelpers.py b/bluesky/ui/qtgl/glhelpers.py index 2abbb00daa..7e3d1ac975 100644 --- a/bluesky/ui/qtgl/glhelpers.py +++ b/bluesky/ui/qtgl/glhelpers.py @@ -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)