From: daid Date: Fri, 31 Aug 2012 12:51:06 +0000 (+0200) Subject: these variable where not always initialised before use. X-Git-Tag: 13.03~358 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0951b35a448abfe11c7e198839bc0fc62cbc0338;p=cura.git these variable where not always initialised before use. --- diff --git a/Cura/gui/preview3d.py b/Cura/gui/preview3d.py index 8c7a0e7e..ddf52c9f 100644 --- a/Cura/gui/preview3d.py +++ b/Cura/gui/preview3d.py @@ -416,6 +416,8 @@ class PreviewGLCanvas(glcanvas.GLCanvas): self.gcodeDisplayListMade = None self.gcodeDisplayListCount = 0 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]] + self.oldX = 0 + self.oldY = 0 def updateProfileToControls(self): self.objColor[0] = profile.getPreferenceColour('model_colour')