diff options
-rw-r--r-- | plugins/CuraEngineBackend/StartSliceJob.py | 5 | ||||
-rwxr-xr-x | resources/definitions/creality_ender3.def.json | 5 | ||||
-rw-r--r-- | resources/extruders/creality_ender3_extruder_0.def.json | 14 |
3 files changed, 11 insertions, 13 deletions
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py index 4a3687e66a..79b1e5249c 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: diff --git a/resources/definitions/creality_ender3.def.json b/resources/definitions/creality_ender3.def.json index 2c9bfa04d0..64e01504dd 100755 --- a/resources/definitions/creality_ender3.def.json +++ b/resources/definitions/creality_ender3.def.json @@ -9,7 +9,8 @@ "file_formats": "text/x-gcode", "platform": "creality_ender3_platform.stl", "preferred_quality_type": "draft", - "machine_extruder_trains": { + "machine_extruder_trains": + { "0": "creality_ender3_extruder_0" } }, @@ -86,4 +87,4 @@ "default_value": "; Ender 3 Custom End G-code\nG4 ; Wait\nM220 S100 ; Reset Speed factor override percentage to default (100%)\nM221 S100 ; Reset Extrude factor override percentage to default (100%)\nG91 ; Set coordinates to relative\nG1 F1800 E-3 ; Retract filament 3 mm to prevent oozing\nG1 F3000 Z10 ; Move Z Axis up 10 mm to allow filament ooze freely\nG90 ; Set coordinates to absolute\nG1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal\nM104 S0 ; Turn off Extruder temperature\nM140 S0 ; Turn off Heat Bed\nM106 S0 ; Turn off Cooling Fan\nM107 ; Turn off Fan\nM84 ; Disable stepper motors" } } -}
\ No newline at end of file +} diff --git a/resources/extruders/creality_ender3_extruder_0.def.json b/resources/extruders/creality_ender3_extruder_0.def.json index d5ec01a713..431366c777 100644 --- a/resources/extruders/creality_ender3_extruder_0.def.json +++ b/resources/extruders/creality_ender3_extruder_0.def.json @@ -9,14 +9,8 @@ }, "overrides": { - "extruder_nr": { - "default_value": 0 - }, - "machine_nozzle_size": { - "default_value": 0.4 - }, - "material_diameter": { - "default_value": 1.75 - } + "extruder_nr": { "default_value": 0 }, + "machine_nozzle_size": { "default_value": 0.4 }, + "material_diameter": { "default_value": 1.75 } } -}
\ No newline at end of file +} |