Changes to the layer coloring, better visible gcode path now

This commit is contained in:
daid 2012-03-16 14:52:47 +01:00
parent 76d4b0f95b
commit 973a84ac8f

View File

@ -325,9 +325,9 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
c = 1.0
if path['layerNr'] != self.parent.layerSpin.GetValue():
if path['layerNr'] < self.parent.layerSpin.GetValue():
c = 0.5 - (self.parent.layerSpin.GetValue() - path['layerNr']) * 0.1
if c < 0.1:
c = 0.1
c = 0.9 - (self.parent.layerSpin.GetValue() - path['layerNr']) * 0.1
if c < 0.4:
c = 0.4
else:
break
if path['type'] == 'move':
@ -341,7 +341,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
glColor3f(c,0,0)
if path['type'] == 'retract':
glColor3f(0,c,c)
if c > 0.1 and path['type'] == 'extrude':
if c > 0.4 and path['type'] == 'extrude':
if path['pathType'] == 'FILL':
lineWidth = self.fillLineWidth / 2
else: