diff options
author | Jack Ha <j.ha@ultimaker.com> | 2017-01-25 11:24:40 +0300 |
---|---|---|
committer | Jack Ha <j.ha@ultimaker.com> | 2017-01-25 11:24:40 +0300 |
commit | 6625938a2b7d0590e099d398acad2c4fa3b29ec6 (patch) | |
tree | 73499c303534623a1747cd696cc6f09056aa215e /cura/LayerPolygon.py | |
parent | e21a6ed62a0e6018c717c5ce0e331c9496d5a85b (diff) |
Cleanup __color_map in LayerPolygon
Diffstat (limited to 'cura/LayerPolygon.py')
-rw-r--r-- | cura/LayerPolygon.py | 3 |
1 files changed, 1 insertions, 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 |