these variable where not always initialised before use.

master
daid 2012-08-31 14:51:06 +02:00
parent 1229a8b1b9
commit 0951b35a44
1 changed files with 2 additions and 0 deletions

View File

@ -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')