From 002b3139e64c6dba87138070094c86e53293d6b7 Mon Sep 17 00:00:00 2001 From: Victor Larchenko Date: Thu, 24 Nov 2016 14:31:48 +0600 Subject: [PATCH] D5: Fixed dual extrusion colors --- plugins/GCodeReader/GCodeReader.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/GCodeReader/GCodeReader.py b/plugins/GCodeReader/GCodeReader.py index a147603892..af3536c6f1 100644 --- a/plugins/GCodeReader/GCodeReader.py +++ b/plugins/GCodeReader/GCodeReader.py @@ -107,10 +107,7 @@ class GCodeReader(MeshReader): points[i, 1] = point[2] points[i, 2] = -point[1] if i > 0: - if point[3] == LayerPolygon.Inset0Type: - line_types[i - 1] = extruder + 1 - else: - line_types[i - 1] = point[3] + line_types[i - 1] = point[3] i += 1 this_poly = LayerPolygon(layer_data, extruder, line_types, points, line_widths)