mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
No longer crash when trying to get non existing extruder stacks
CURA-3953
This commit is contained in:
parent
572852d2d6
commit
7813bfc543
1 changed files with 3 additions and 2 deletions
|
@ -78,8 +78,9 @@ class ExtruderManager(QObject):
|
|||
def extruderIds(self):
|
||||
map = {}
|
||||
global_stack_id = Application.getInstance().getGlobalContainerStack().getId()
|
||||
for position in self._extruder_trains[global_stack_id]:
|
||||
map[position] = self._extruder_trains[global_stack_id][position].getId()
|
||||
if global_stack_id in self._extruder_trains:
|
||||
for position in self._extruder_trains[global_stack_id]:
|
||||
map[position] = self._extruder_trains[global_stack_id][position].getId()
|
||||
return map
|
||||
|
||||
@pyqtSlot(str, result = str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue