Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Ha <j.ha@ultimaker.com>2016-12-30 17:32:06 +0300
committerJack Ha <j.ha@ultimaker.com>2016-12-30 17:32:06 +0300
commit6271774528688a5fb0af46a39eefd4586a238136 (patch)
treecc1dca2a05921777b916617f82ec3d63b5010c28 /cura/LayerDataBuilder.py
parentfc4c60b0dcfe8198831915ebf2d1de2dda653dfb (diff)
Added all kinds of options to layer view
Diffstat (limited to 'cura/LayerDataBuilder.py')
-rw-r--r--cura/LayerDataBuilder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/LayerDataBuilder.py b/cura/LayerDataBuilder.py
index 6750b60d53..72dac319cd 100644
--- a/cura/LayerDataBuilder.py
+++ b/cura/LayerDataBuilder.py
@@ -76,8 +76,8 @@ class LayerDataBuilder(MeshBuilder):
material_colors = numpy.zeros((line_dimensions.shape[0], 4), dtype=numpy.float32)
for extruder_nr in range(material_color_map.shape[0]):
material_colors[extruders == extruder_nr] = material_color_map[extruder_nr]
- material_colors[line_types == LayerPolygon.MoveCombingType] = [0.0, 0.0, 0.8, 1.0]
- material_colors[line_types == LayerPolygon.MoveRetractionType] = [0.0, 0.0, 0.8, 1.0]
+ material_colors[line_types == LayerPolygon.MoveCombingType] = colors[line_types == LayerPolygon.MoveCombingType]
+ material_colors[line_types == LayerPolygon.MoveRetractionType] = colors[line_types == LayerPolygon.MoveRetractionType]
attributes = {
"line_dimensions": {