From 7c2bac2ea29bf74c5855c427f41c94e960636052 Mon Sep 17 00:00:00 2001 From: Joost Ellerbroek Date: Fri, 31 May 2024 17:13:03 +0200 Subject: [PATCH] Explicit check for None to fix ubo system error --- bluesky/ui/qtgl/glhelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)