mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Add user profile to extruder stack
This profile is empty to start with. The user can fill it. Contributes to issues CURA-351 and CURA-1278.
This commit is contained in:
parent
7993775feb
commit
9772d95984
1 changed files with 7 additions and 1 deletions
|
@ -23,7 +23,8 @@ class Extruder:
|
|||
self._nozzles += container_registry.findInstanceContainers(type = "nozzle", definitions = self._definition.getId())
|
||||
|
||||
#Create a container stack for this extruder.
|
||||
self._container_stack = UM.Settings.ContainerStack(self._uniqueName(self._definition.getId()))
|
||||
name = self._uniqueName(self._definition.getId())
|
||||
self._container_stack = UM.Settings.ContainerStack(name)
|
||||
self._container_stack.addMetaDataEntry("type", "extruder_train")
|
||||
self._container_stack.addContainer(self._definition)
|
||||
|
||||
|
@ -69,6 +70,11 @@ class Extruder:
|
|||
self._quality = preferred_quality[0]
|
||||
self._container_stack.addContainer(self._quality)
|
||||
|
||||
#Add an empty user profile.
|
||||
self._user_profile = UM.Settings.InstanceContainer(name + "_current_settings")
|
||||
self._user_profile.addMetaDataEntry("type", "user")
|
||||
self._container_stack.addContainer(self._user_profile)
|
||||
|
||||
self._container_stack.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
||||
|
||||
## Finds a unique name for an extruder stack.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue