mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Create extruder train for each train in a machine
We had the functionality, but this function was not yet called! Contributes to issues CURA-1278 and CURA-340.
This commit is contained in:
parent
927d33145f
commit
d1be5b6c02
2 changed files with 13 additions and 4 deletions
|
@ -79,14 +79,14 @@ class ExtruderManager(QObject):
|
|||
self._extruder_trains[machine_id][extruder_train.getMetaDataEntry("position")] = extruder_train.getId()
|
||||
self.extrudersChanged.emit()
|
||||
|
||||
def createExtruderTrain(self, definition, extruder_id):
|
||||
def createExtruderTrain(self, extruder_definition, machine_definition, extruder_id):
|
||||
container_registry = UM.Settings.ContainerRegistry.getInstance()
|
||||
|
||||
#Create a container stack for this extruder.
|
||||
name = self._uniqueName(extruder_id)
|
||||
container_stack = UM.Settings.ContainerStack(name)
|
||||
container_stack.addMetaDataEntry("type", "extruder_train")
|
||||
container_stack.addContainer(definition)
|
||||
container_stack.addContainer(extruder_definition)
|
||||
|
||||
"""
|
||||
Yes, I'm committing this code which needs to be transformed to work later.
|
||||
|
@ -136,6 +136,7 @@ class ExtruderManager(QObject):
|
|||
#Add an empty user profile.
|
||||
user_profile = UM.Settings.InstanceContainer(name + "_current_settings")
|
||||
user_profile.addMetaDataEntry("type", "user")
|
||||
user_profile.setDefinition(machine_definition)
|
||||
container_stack.addContainer(user_profile)
|
||||
container_registry.addContainer(user_profile)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue