From 3ad11dc0c7619ac067995c0896ef76d72ebbf0c0 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 10 Jan 2016 22:53:41 -1000 Subject: [PATCH] Assert display list is not None instead of is not truthy. bool(array[0]) is not truthy but is still a valid display list. --- src/mcedit2/util/glutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcedit2/util/glutils.py b/src/mcedit2/util/glutils.py index 0f16fd7..c2e4e45 100644 --- a/src/mcedit2/util/glutils.py +++ b/src/mcedit2/util/glutils.py @@ -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)