mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 13:51:12 -07:00
Make sure only single-extrusion machines will be fixed
CURA-4713
This commit is contained in:
parent
196bffd3ad
commit
588335c6db
1 changed files with 4 additions and 0 deletions
|
|
@ -406,6 +406,10 @@ class CuraContainerRegistry(ContainerRegistry):
|
||||||
if not isinstance(container, ContainerStack) or container.getMetaDataEntry("type") != "machine":
|
if not isinstance(container, ContainerStack) or container.getMetaDataEntry("type") != "machine":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
machine_extruder_trains = container.getMetaDataEntry("machine_extruder_trains")
|
||||||
|
if machine_extruder_trains is not None and machine_extruder_trains != {"0": "fdmextruder"}:
|
||||||
|
return
|
||||||
|
|
||||||
extruder_stacks = self.findContainerStacks(type = "extruder_train", machine = container.getId())
|
extruder_stacks = self.findContainerStacks(type = "extruder_train", machine = container.getId())
|
||||||
if not extruder_stacks:
|
if not extruder_stacks:
|
||||||
self.addExtruderStackForSingleExtrusionMachine(container, "fdmextruder")
|
self.addExtruderStackForSingleExtrusionMachine(container, "fdmextruder")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue