mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Fix KeyError in root material ID check
CURA-6827
This commit is contained in:
parent
51c96aecde
commit
aaca4bb9a1
1 changed files with 1 additions and 1 deletions
|
@ -1246,7 +1246,7 @@ class MachineManager(QObject):
|
||||||
self._global_container_stack.extruderList[int(position)].material = empty_material_container
|
self._global_container_stack.extruderList[int(position)].material = empty_material_container
|
||||||
root_material_id = None
|
root_material_id = None
|
||||||
# The _current_root_material_id is used in the MaterialMenu to see which material is selected
|
# The _current_root_material_id is used in the MaterialMenu to see which material is selected
|
||||||
if root_material_id != self._current_root_material_id[position]:
|
if position not in self._current_root_material_id or root_material_id != self._current_root_material_id[position]:
|
||||||
self._current_root_material_id[position] = root_material_id
|
self._current_root_material_id[position] = root_material_id
|
||||||
self.rootMaterialChanged.emit()
|
self.rootMaterialChanged.emit()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue