mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 08:05:54 +08:00
Revert "Fix ExtruderManager.py"
That is not a fix. That is a patch. This reverts commit b991743053edf2778a2395dc9ede7007b99386eb.
This commit is contained in:
parent
84a9691390
commit
08d116590d
@ -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…
x
Reference in New Issue
Block a user