Do the refresh of the 3D window after drawing, this will help with issue #151

master
Daid 2012-10-31 10:49:32 +01:00
parent 76ae8137f2
commit be86d34403
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
opengl.DrawGCodeLayer(self.parent.gcode.layerList[self.gcodeDisplayListMade])
glEndList()
self.gcodeDisplayListMade += 1
self.Refresh()
wx.CallAfter(self.Refresh)
glPushMatrix()
glTranslate(self.parent.machineCenter.x, self.parent.machineCenter.y, 0)