From f40e9bffa9aeee2e312fbe4cbe5cab7bfa8189f6 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 12 Mar 2018 17:27:55 +0100 Subject: [PATCH] Use extruder positions directly ...instead of the keys in the _current_root_material_id map. Contributes to issue CURA-4606. --- cura/Settings/MachineManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 3a65b6df5d..d79130e0c3 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -872,9 +872,9 @@ class MachineManager(QObject): container = extruder.userChanges container.setProperty(setting_name, property_name, property_value) - @pyqtProperty("QVariantList", notify = rootMaterialChanged) + @pyqtProperty("QVariantList", notify = globalContainerChanged) def currentExtruderPositions(self): - return sorted(list(self._current_root_material_id.keys())) + return sorted(list(self._global_container_stack.extruders.keys())) @pyqtProperty("QVariant", notify = rootMaterialChanged) def currentRootMaterialId(self):