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:
authorGhostkeeper <rubend@tutanota.com>2017-02-08 14:42:40 +0300
committerGhostkeeper <rubend@tutanota.com>2017-02-08 14:42:40 +0300
commitd7b0336c2411711acf944c4f2bb296caf80c34be (patch)
treed520549bdfa88fbe8c320c7388fe41e7e5a202b7 /cura/PrinterOutputDevice.py
parent2a114f1e533bef64e8b48a001e12998e63937275 (diff)
Fix colour of unknown material
The other colour was just used for debugging. Contributes to issue CURA-3161.
Diffstat (limited to 'cura/PrinterOutputDevice.py')
-rw-r--r--cura/PrinterOutputDevice.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py
index 3cba132f9a..f989bf26cd 100644
--- a/cura/PrinterOutputDevice.py
+++ b/cura/PrinterOutputDevice.py
@@ -1,3 +1,6 @@
+# Copyright (c) 2017 Ultimaker B.V.
+# Cura is released under the terms of the AGPLv3 or higher.
+
from UM.i18n import i18nCatalog
from UM.OutputDevice.OutputDevice import OutputDevice
from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot, QObject
@@ -357,14 +360,14 @@ class PrinterOutputDevice(QObject, OutputDevice):
result = []
for material_id in self._material_ids:
if material_id is None:
- result.append("#800000FF") #No material.
+ result.append("#00000000") #No material.
continue
containers = self._container_registry.findInstanceContainers(type = "material", GUID = material_id)
if containers:
result.append(containers[0].getMetaDataEntry("color_code"))
else:
- result.append("#800000FF") #Unknown material.
+ result.append("#00000000") #Unknown material.
return result
## Protected setter for the current material id.