Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cura/Settings/ExtruderManager.py')
-rwxr-xr-xcura/Settings/ExtruderManager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cura/Settings/ExtruderManager.py b/cura/Settings/ExtruderManager.py
index 10934c2d31..6d9f939091 100755
--- a/cura/Settings/ExtruderManager.py
+++ b/cura/Settings/ExtruderManager.py
@@ -77,8 +77,9 @@ class ExtruderManager(QObject):
@pyqtProperty("QVariantMap", notify=extrudersChanged)
def extruderIds(self):
map = {}
- for position in self._extruder_trains[Application.getInstance().getGlobalContainerStack().getId()]:
- map[position] = self._extruder_trains[Application.getInstance().getGlobalContainerStack().getId()][position].getId()
+ 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()
return map
@pyqtSlot(str, result = str)