mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-02-15 17:09:33 -07:00
Safeguard against decrease in number of extruders
When the painted model goes from a machine with higher number of extruders to a lower number of extruders with painted data, adding the same safeguard as the limit to extruder settings to prevent crash
This commit is contained in:
parent
3d2741a985
commit
549b040632
1 changed files with 2 additions and 0 deletions
|
|
@ -257,6 +257,8 @@ class ExtruderManager(QObject):
|
|||
painted_extruders = node.callDecoration("getPaintedExtruders")
|
||||
if painted_extruders is not None:
|
||||
for extruder_nr in painted_extruders:
|
||||
if str(extruder_nr) not in self.extruderIds:
|
||||
extruder_nr = int(self._application.getMachineManager().defaultExtruderPosition)
|
||||
used_extruder_stack_ids.add(self.extruderIds[str(extruder_nr)])
|
||||
|
||||
# Check limit to extruders
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue