mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:39:03 +08:00
Not allowing to modify the number of extruders in multiextruder printers, except Custom FDM printers - CURA-4359
This commit is contained in:
parent
83e612c1c1
commit
4b3e83f876
@ -112,7 +112,13 @@ class MachineSettingsAction(MachineAction):
|
|||||||
if not self._global_container_stack:
|
if not self._global_container_stack:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
return len(self._global_container_stack.getMetaDataEntry("machine_extruder_trains"))
|
# If there is a printer that originally is multi-extruder, it's not allowed to change the number of extruders
|
||||||
|
# It's just allowed in case of Custom FDM printers
|
||||||
|
definition_container = self._global_container_stack.getBottom()
|
||||||
|
if definition_container.getId() == "custom":
|
||||||
|
return len(self._global_container_stack.getMetaDataEntry("machine_extruder_trains"))
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
@pyqtSlot(int)
|
@pyqtSlot(int)
|
||||||
def setMachineExtruderCount(self, extruder_count):
|
def setMachineExtruderCount(self, extruder_count):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user