mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
If no quality container can be found, use empty instead
CURA-2462
This commit is contained in:
parent
a43713e27f
commit
9e47a87375
1 changed files with 5 additions and 1 deletions
|
|
@ -679,7 +679,11 @@ class MachineManager(QObject):
|
|||
type="quality_changes",
|
||||
quality_type=stack_quality.getMetaDataEntry("quality_type"),
|
||||
name = quality_changes_container.getName(), extruder = extruder_id)
|
||||
if changes:
|
||||
stack_quality_changes = changes[0]
|
||||
else:
|
||||
Logger.log("w", "Unable to find quality changes container. Using empty container instead")
|
||||
stack_quality_changes = self._empty_quality_changes_container
|
||||
else:
|
||||
# This is case of quality container and the no-op quality changes container.
|
||||
stack_quality_changes = self._empty_quality_changes_container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue