Assert display list is not None instead of is not truthy.
bool(array[0]) is not truthy but is still a valid display list.
This commit is contained in:
parent
346c945324
commit
3ad11dc0c7
@ -162,7 +162,7 @@ class DisplayList(object):
|
||||
return self._list
|
||||
|
||||
def call(self):
|
||||
assert self._list
|
||||
assert self._list is not None
|
||||
GL.glCallLists(self._list)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user