mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Revert "Fix ExtruderManager.py"
That is not a fix. That is a patch.
This reverts commit b991743053
.
This commit is contained in:
parent
84a9691390
commit
08d116590d
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
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.
|
||||
from UM.Logger import Logger
|
||||
import UM.Logger
|
||||
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.
|
||||
def addMachineExtruders(self, machine_definition):
|
||||
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] = { }
|
||||
|
||||
container_registry = UM.Settings.ContainerRegistry.getInstance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue