mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 15:39:10 +08:00
Use self._definition instead of local definition parameter
This is supposedly more defensive coding. Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
parent
7f7b56ff08
commit
72bc68f38a
@ -17,10 +17,10 @@ class Extruder:
|
||||
container_registry = UM.Settings.ContainerRegistry.getInstance()
|
||||
|
||||
#Find the nozzles that fit on this extruder.
|
||||
self._nozzles = container_registry.findInstanceContainers(type = "nozzle", definitions = "*," + definition.getId() + ",*") #Extruder needs to be delimited by either a comma or the end of string.
|
||||
self._nozzles += container_registry.findInstanceContainers(type = "nozzle", definitions = "*," + definition.getId())
|
||||
self._nozzles += container_registry.findInstanceContainers(type = "nozzle", definitions = definition.getId() + ",*")
|
||||
self._nozzles += container_registry.findInstanceContainers(type = "nozzle", definitions = definition.getId())
|
||||
self._nozzles = container_registry.findInstanceContainers(type = "nozzle", definitions = "*," + self._definition.getId() + ",*") #Extruder needs to be delimited by either a comma or the end of string.
|
||||
self._nozzles += container_registry.findInstanceContainers(type = "nozzle", definitions = "*," + self._definition.getId())
|
||||
self._nozzles += container_registry.findInstanceContainers(type = "nozzle", definitions = self._definition.getId() + ",*")
|
||||
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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user