mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 18:19:11 +08: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
@ -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…
x
Reference in New Issue
Block a user