these variable where not always initialised before use.
This commit is contained in:
parent
1229a8b1b9
commit
0951b35a44
1 changed files with 2 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue