From c53b110ea9573d2afb6a855fbc6103843165c9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hajo=20Nils=20Krabbenho=CC=88ft?= Date: Mon, 21 Sep 2015 00:16:52 +0200 Subject: [PATCH] ch color for retraction + draw jumps slightly above the rest --- plugins/CuraEngineBackend/LayerData.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/CuraEngineBackend/LayerData.py b/plugins/CuraEngineBackend/LayerData.py index cb9b21b606..24f78f17e3 100644 --- a/plugins/CuraEngineBackend/LayerData.py +++ b/plugins/CuraEngineBackend/LayerData.py @@ -136,6 +136,8 @@ class Layer(): points = numpy.copy(polygon.data) if polygon.type == Polygon.InfillType or polygon.type == Polygon.SkinType or polygon.type == Polygon.SupportInfillType: points[:,1] -= 0.01 + if polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType: + points[:,1] += 0.01 # Calculate normals for the entire polygon using numpy. normals = numpy.copy(points) @@ -236,7 +238,7 @@ class Polygon(): elif self._type == self.MoveCombingType: return Color(0.0, 0.0, 1.0, 1.0) elif self._type == self.MoveRetractionType: - return Color(0.5, 0.5, 1.0, 1.0) + return Color(0.0, 1.0, 1.0, 1.0) else: return Color(1.0, 1.0, 1.0, 1.0)