From 973a84ac8f44a2462cde4968c6aea1040f80552b Mon Sep 17 00:00:00 2001 From: daid Date: Fri, 16 Mar 2012 14:52:47 +0100 Subject: [PATCH] Changes to the layer coloring, better visible gcode path now --- SkeinPyPy_NewUI/newui/preview3d.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: -- 2.30.2