chiark / gitweb /
Do the refresh of the 3D window after drawing, this will help with issue #151
authorDaid <Daid303@gmail.com>
Wed, 31 Oct 2012 09:49:32 +0000 (10:49 +0100)
committerDaid <Daid303@gmail.com>
Wed, 31 Oct 2012 09:49:32 +0000 (10:49 +0100)
Cura/gui/preview3d.py

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