chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change how the engine is interfaced from the python code. Put the GCode viewer in...
[cura.git]
/
Cura
/
gui
/
util
/
openglGui.py
diff --git
a/Cura/gui/util/openglGui.py
b/Cura/gui/util/openglGui.py
index 48e216de38b26e193bf574597d11690212761ede..c9b0eeebe684408fc0d1573e2f3cf0e14a7879dd 100644
(file)
--- a/
Cura/gui/util/openglGui.py
+++ b/
Cura/gui/util/openglGui.py
@@
-10,7
+10,7
@@
import time
from wx import glcanvas
import OpenGL
from wx import glcanvas
import OpenGL
-OpenGL.ERROR_CHECKING = False
+
#
OpenGL.ERROR_CHECKING = False
from OpenGL.GL import *
from Cura.util import version
from OpenGL.GL import *
from Cura.util import version
@@
-245,6
+245,7
@@
class glGuiPanel(glcanvas.GLCanvas):
locationInfo = tb[n]
errStr += "\n @ %s:%s:%d" % (os.path.basename(locationInfo[0]), locationInfo[2], locationInfo[1])
if not self._shownError:
locationInfo = tb[n]
errStr += "\n @ %s:%s:%d" % (os.path.basename(locationInfo[0]), locationInfo[2], locationInfo[1])
if not self._shownError:
+ traceback.print_exc()
wx.CallAfter(wx.MessageBox, errStr, _("3D window error"), wx.OK | wx.ICON_EXCLAMATION)
self._shownError = True
wx.CallAfter(wx.MessageBox, errStr, _("3D window error"), wx.OK | wx.ICON_EXCLAMATION)
self._shownError = True
@@
-287,7
+288,7
@@
class glGuiPanel(glcanvas.GLCanvas):
# glVertex2f(0, 0)
# glEnd()
# glDisable(GL_TEXTURE_2D)
# glVertex2f(0, 0)
# glEnd()
# glDisable(GL_TEXTURE_2D)
- glPopMatrix()
+
#
glPopMatrix()
def _OnEraseBackground(self,event):
#Workaround for windows background redraw flicker.
def _OnEraseBackground(self,event):
#Workaround for windows background redraw flicker.