From: daid Date: Fri, 16 Mar 2012 13:52:47 +0000 (+0100) Subject: Changes to the layer coloring, better visible gcode path now X-Git-Tag: RC1~74 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=973a84ac8f44a2462cde4968c6aea1040f80552b;p=cura.git Changes to the layer coloring, better visible gcode path now --- diff --git a/SkeinPyPy_NewUI/newui/preview3d.py b/SkeinPyPy_NewUI/newui/preview3d.py index b7afb4f4..041c615c 100644 --- a/SkeinPyPy_NewUI/newui/preview3d.py +++ b/SkeinPyPy_NewUI/newui/preview3d.py @@ -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: