mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 04:25:56 +08:00
If no quality container can be found, use empty instead
CURA-2462
This commit is contained in:
parent
a43713e27f
commit
9e47a87375
@ -679,7 +679,11 @@ class MachineManager(QObject):
|
|||||||
type="quality_changes",
|
type="quality_changes",
|
||||||
quality_type=stack_quality.getMetaDataEntry("quality_type"),
|
quality_type=stack_quality.getMetaDataEntry("quality_type"),
|
||||||
name = quality_changes_container.getName(), extruder = extruder_id)
|
name = quality_changes_container.getName(), extruder = extruder_id)
|
||||||
stack_quality_changes = changes[0]
|
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:
|
else:
|
||||||
# This is case of quality container and the no-op quality changes container.
|
# This is case of quality container and the no-op quality changes container.
|
||||||
stack_quality_changes = self._empty_quality_changes_container
|
stack_quality_changes = self._empty_quality_changes_container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user