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:
authoralekseisasin <a.sasin@ultimaker.com>2018-10-09 12:53:46 +0300
committerGitHub <noreply@github.com>2018-10-09 12:53:46 +0300
commit0b70b9a218b56987721cda93f590913d1d9e14c2 (patch)
tree95b22a186deed6e872bc374ef61233716cd39bcd /plugins/CuraEngineBackend/StartSliceJob.py
parent18821b6527c918f622fd57caa0d5cfb711e15644 (diff)
parent5ba60de20939754241edcd04903038ade60e7ca8 (diff)
Merge pull request #4521 from Ultimaker/CURA-5799_fix_extruder_settings_to_curaengine
[3.5] CURA-5799 Fix sending extruder settings to curaengine
Diffstat (limited to 'plugins/CuraEngineBackend/StartSliceJob.py')
-rw-r--r--plugins/CuraEngineBackend/StartSliceJob.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py
index bb9387a65d..37b490dcfc 100644
--- a/plugins/CuraEngineBackend/StartSliceJob.py
+++ b/plugins/CuraEngineBackend/StartSliceJob.py
@@ -251,7 +251,10 @@ class StartSliceJob(Job):
self._buildGlobalInheritsStackMessage(stack)
# Build messages for extruder stacks
- for extruder_stack in ExtruderManager.getInstance().getMachineExtruders(stack.getId()):
+ # Send the extruder settings in the order of extruder positions. Somehow, if you send e.g. extruder 3 first,
+ # then CuraEngine can slice with the wrong settings. This I think should be fixed in CuraEngine as well.
+ extruder_stack_list = sorted(list(global_stack.extruders.items()), key = lambda item: int(item[0]))
+ for _, extruder_stack in extruder_stack_list:
self._buildExtruderMessage(extruder_stack)
for group in filtered_object_groups: