mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Material GUID is now sent to engine for each extruder
CURA-1836
This commit is contained in:
parent
6d92f50038
commit
d48b4bf790
1 changed files with 6 additions and 0 deletions
|
@ -180,6 +180,12 @@ class StartSliceJob(Job):
|
|||
setting.value = str(stack.getProperty(key, "value")).encode("utf-8")
|
||||
Job.yieldThread()
|
||||
|
||||
# ALso send the material GUID as a setting.
|
||||
material_instance_container = stack.findContainer({"type": "material"})
|
||||
if material_instance_container:
|
||||
setting = message.getMessage("settings").addRepeatedMessage("settings")
|
||||
setting.name = "material_GUID"
|
||||
setting.value = str(material_instance_container.getMetaDataEntry("GUID", "")).encode("utf-8")
|
||||
## Sends all global settings to the engine.
|
||||
#
|
||||
# The settings are taken from the global stack. This does not include any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue