Revert "Fix ExtruderManager.py"

That is not a fix. That is a patch.

This reverts commit b991743053.
This commit is contained in:
Ghostkeeper 2016-06-07 13:32:36 +02:00
parent 84a9691390
commit 08d116590d
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -4,7 +4,7 @@
from PyQt5.QtCore import pyqtSignal, pyqtProperty, pyqtSlot, QObject #For communicating data and events to Qt. from PyQt5.QtCore import pyqtSignal, pyqtProperty, pyqtSlot, QObject #For communicating data and events to Qt.
import UM.Application #To get the global container stack to find the current machine. import UM.Application #To get the global container stack to find the current machine.
from UM.Logger import Logger import UM.Logger
import UM.Settings.ContainerRegistry #Finding containers by ID. import UM.Settings.ContainerRegistry #Finding containers by ID.
@ -57,7 +57,7 @@ class ExtruderManager(QObject):
# \param machine_definition The machine to add the extruders for. # \param machine_definition The machine to add the extruders for.
def addMachineExtruders(self, machine_definition): def addMachineExtruders(self, machine_definition):
machine_id = machine_definition.getId() machine_id = machine_definition.getId()
if machine_id not in self._extruder_trains: if not self._extruder_trains[machine_id]:
self._extruder_trains[machine_id] = { } self._extruder_trains[machine_id] = { }
container_registry = UM.Settings.ContainerRegistry.getInstance() container_registry = UM.Settings.ContainerRegistry.getInstance()