mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 23:38:53 -07:00
Fix ExtruderManager.py
This commit is contained in:
parent
253061cfa4
commit
b991743053
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.
|
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.
|
||||||
import UM.Logger
|
from UM.Logger import 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 not self._extruder_trains[machine_id]:
|
if machine_id not in self._extruder_trains:
|
||||||
self._extruder_trains[machine_id] = { }
|
self._extruder_trains[machine_id] = { }
|
||||||
|
|
||||||
container_registry = UM.Settings.ContainerRegistry.getInstance()
|
container_registry = UM.Settings.ContainerRegistry.getInstance()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue