chiark / gitweb /
these variable where not always initialised before use.
authordaid <daid303@gmail.com>
Fri, 31 Aug 2012 12:51:06 +0000 (14:51 +0200)
committerdaid <daid303@gmail.com>
Fri, 31 Aug 2012 12:51:06 +0000 (14:51 +0200)
Cura/gui/preview3d.py

index 8c7a0e7ec3d0e8688db78ac8dc6a09aa01936454..ddf52c9f47b40fdffb782e4a2122a3a895d7c823 100644 (file)
@@ -416,6 +416,8 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
                self.gcodeDisplayListMade = None\r
                self.gcodeDisplayListCount = 0\r
                self.objColor = [[1.0, 0.8, 0.6, 1.0], [0.2, 1.0, 0.1, 1.0], [1.0, 0.2, 0.1, 1.0], [0.1, 0.2, 1.0, 1.0]]\r
+               self.oldX = 0\r
+               self.oldY = 0\r
        \r
        def updateProfileToControls(self):\r
                self.objColor[0] = profile.getPreferenceColour('model_colour')\r