Skip to content
Snippets Groups Projects
Commit beccc8aa authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Merge branch 'master' into oxford

parents 321c23a0 2d6114ea
No related branches found
No related tags found
No related merge requests found
......@@ -91,9 +91,9 @@ class GLLabel(globject.GLImageObject):
"""Returns ``True`` if this ``GLLabel`` is ready to be drawn, ``False``
otherwise.
"""
return self.shader is not None and \
self.imageTexture is not None and \
self.imageTexture.ready()
return (self.shader is not None and
self.imageTexture is not None and
self.imageTexture.ready())
def addListeners(self):
......
......@@ -237,15 +237,15 @@ class GLVector(globject.GLImageObject):
"""Returns ``True`` if this ``GLVector`` is ready to be drawn,
``False`` otherwise.
"""
return all((self.shader is not None,
self.imageTexture is not None,
self.modulateTexture is not None,
self.clipTexture is not None,
self.colourTexture is not None,
self.imageTexture .ready(),
self.modulateTexture.ready(),
self.clipTexture .ready(),
self.colourTexture .ready()))
return (self.shader is not None and
self.imageTexture is not None and
self.modulateTexture is not None and
self.clipTexture is not None and
self.colourTexture is not None and
self.imageTexture .ready() and
self.modulateTexture.ready() and
self.clipTexture .ready() and
self.colourTexture .ready())
def addListeners(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment