mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 14:35:54 +08:00
Link extruder stack to global container stack
Each extruder stack is linked to the same global container stack. Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
parent
d1566ef637
commit
91fc90a423
@ -3,6 +3,7 @@
|
||||
|
||||
import re #To parse container registry names to increment the duplicates-resolving number.
|
||||
|
||||
import UM.Application #To link the stack to the global container stack.
|
||||
import UM.Settings.ContainerRegistry #To search for nozzles, materials, etc.
|
||||
import UM.Settings.ContainerStack #To create a container stack for this extruder.
|
||||
|
||||
@ -62,6 +63,8 @@ class Extruder:
|
||||
self._quality = preferred_quality[0]
|
||||
self._container_stack.addContainer(self._quality)
|
||||
|
||||
self._container_stack.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
||||
|
||||
## Finds a unique name for an extruder stack.
|
||||
#
|
||||
# \param extruder An extruder definition to design a name for.
|
||||
|
Loading…
x
Reference in New Issue
Block a user