mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 05:11:04 -07:00
Don't crash when updating material list without global container
There is nothing to update then. Contributes to issue CURA-5045.
This commit is contained in:
parent
74a0da14bf
commit
75e993eb60
1 changed files with 2 additions and 0 deletions
|
|
@ -1115,6 +1115,8 @@ class MachineManager(QObject):
|
||||||
self._setQualityGroup(candidate_quality_groups[quality_type], empty_quality_changes = True)
|
self._setQualityGroup(candidate_quality_groups[quality_type], empty_quality_changes = True)
|
||||||
|
|
||||||
def _updateMaterialWithVariant(self, position: Optional[str]):
|
def _updateMaterialWithVariant(self, position: Optional[str]):
|
||||||
|
if self._global_container_stack is None:
|
||||||
|
return
|
||||||
if position is None:
|
if position is None:
|
||||||
position_list = list(self._global_container_stack.extruders.keys())
|
position_list = list(self._global_container_stack.extruders.keys())
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue