mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix setting active extruder when changing Custom FDM printer extruders. CURA-3299
This commit is contained in:
parent
5d15d6e792
commit
0452cffff9
1 changed files with 2 additions and 2 deletions
4
plugins/MachineSettingsAction/MachineSettingsAction.py
Normal file → Executable file
4
plugins/MachineSettingsAction/MachineSettingsAction.py
Normal file → Executable file
|
@ -186,8 +186,8 @@ class MachineSettingsAction(MachineAction):
|
|||
if node.getMeshData():
|
||||
extruder_nr = node.callDecoration("getActiveExtruderPosition")
|
||||
|
||||
if extruder_nr is not None and extruder_nr > extruder_count - 1:
|
||||
node.callDecoration("setActiveExtruder", extruder_manager.getExtruderStack(extruder_count -1).getId())
|
||||
if extruder_nr is not None and int(extruder_nr) > extruder_count - 1:
|
||||
node.callDecoration("setActiveExtruder", extruder_manager.getExtruderStack(extruder_count - 1).getId())
|
||||
|
||||
definition_changes_container.setProperty("machine_extruder_count", "value", extruder_count)
|
||||
self.forceUpdate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue