From ce6814d45d585bead366d6a768a62e2be3dcb749 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 24 May 2017 15:19:12 +0200 Subject: [PATCH] Add default for colour code of material Otherwise you get an error that the colour code could not be found. Fixes #1869. --- plugins/CuraEngineBackend/ProcessSlicedLayersJob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py b/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py index afd4739ecf..ecaebb816d 100644 --- a/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py +++ b/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py @@ -175,7 +175,7 @@ class ProcessSlicedLayersJob(Job): for extruder in extruders: material = extruder.findContainer({"type": "material"}) position = int(extruder.getMetaDataEntry("position", default="0")) # Get the position - color_code = material.getMetaDataEntry("color_code") + color_code = material.getMetaDataEntry("color_code", default="#e0e000") color = colorCodeToRGBA(color_code) material_color_map[position, :] = color else: