Pass definition to _uniqueName instead of name

This function expects the entire definition.

Contributes to issueS CURA-1278 and CURA-351.
This commit is contained in:
Ghostkeeper 2016-06-02 17:13:30 +02:00
parent 9b2acf0317
commit b4782e9b12
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -25,7 +25,7 @@ class Extruder:
self._nozzles += container_registry.findInstanceContainers(type = "nozzle", definitions = self._definition.getId())
#Create a container stack for this extruder.
self._name = self._uniqueName(self._definition.getId())
self._name = self._uniqueName(self._definition)
self._container_stack = UM.Settings.ContainerStack(self._name)
self._container_stack.addMetaDataEntry("type", "extruder_train")
self._container_stack.addContainer(self._definition)