Add support and skirt/raft colors to GCode preview

This commit is contained in:
Daid 2012-04-03 23:45:42 +02:00
parent 0a5cc62205
commit 96d014b2c4

View File

@ -459,6 +459,10 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
glColor3f(c/2,c/2,0) glColor3f(c/2,c/2,0)
elif path.pathType == 'WALL-INNER': elif path.pathType == 'WALL-INNER':
glColor3f(0,c,0) glColor3f(0,c,0)
elif path.pathType == 'SUPPORT':
glColor3f(0,c,c)
elif path.pathType == 'SKIRT':
glColor3f(0,c/2,c/2)
else: else:
glColor3f(c,0,0) glColor3f(c,0,0)
if path.type == 'retract': if path.type == 'retract':