From 6625938a2b7d0590e099d398acad2c4fa3b29ec6 Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Wed, 25 Jan 2017 09:24:40 +0100 Subject: [PATCH] Cleanup __color_map in LayerPolygon --- cura/LayerPolygon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cura/LayerPolygon.py b/cura/LayerPolygon.py index 959ac9ad84..c1ec3a6978 100644 --- a/cura/LayerPolygon.py +++ b/cura/LayerPolygon.py @@ -38,7 +38,6 @@ class LayerPolygon: # Buffering the colors shouldn't be necessary as it is not # re-used and can save alot of memory usage. - self._color_map = self.__color_map # * [1, 1, 1, self._extruder] # The alpha component is used to store the extruder nr self._colors = self._color_map[self._types] # When type is used as index returns true if type == LayerPolygon.InfillType or type == LayerPolygon.SkinType or type == LayerPolygon.SupportInfillType @@ -185,7 +184,7 @@ class LayerPolygon: return normals # Should be generated in better way, not hardcoded. - __color_map = numpy.array([ + _color_map = numpy.array([ [1.0, 1.0, 1.0, 1.0], # NoneType [1.0, 0.0, 0.0, 1.0], # Inset0Type [0.0, 1.0, 0.0, 1.0], # InsetXType