mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 04:39:59 +08:00
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:
parent
1db8c967f2
commit
f40e9bffa9
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user