Use extruder positions directly

...instead of the keys in the _current_root_material_id map.

Contributes to issue CURA-4606.
This commit is contained in:
Ghostkeeper 2018-03-12 17:27:55 +01:00
parent 1db8c967f2
commit f40e9bffa9
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -872,9 +872,9 @@ class MachineManager(QObject):
container = extruder.userChanges container = extruder.userChanges
container.setProperty(setting_name, property_name, property_value) container.setProperty(setting_name, property_name, property_value)
@pyqtProperty("QVariantList", notify = rootMaterialChanged) @pyqtProperty("QVariantList", notify = globalContainerChanged)
def currentExtruderPositions(self): 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) @pyqtProperty("QVariant", notify = rootMaterialChanged)
def currentRootMaterialId(self): def currentRootMaterialId(self):