Commit 5973799d authored by lode_leroy's avatar lode_leroy

namespace cleanups

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@73 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 2d0d08ea
...@@ -19,6 +19,8 @@ class Model: ...@@ -19,6 +19,8 @@ class Model:
self.name = "model%d" % self.id self.name = "model%d" % self.id
def to_OpenGL(self): def to_OpenGL(self):
if not GL_enabled:
return
if True: if True:
GL.glBegin(GL.GL_TRIANGLES) GL.glBegin(GL.GL_TRIANGLES)
for t in self._triangles: for t in self._triangles:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment