mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Set quality to empty if no profiles for current material type
This then causes the text 'Not supported' to appear to the user, indicating that for his foreign material we have no known quality profiles. Contributes to issue CURA-3144.
This commit is contained in:
parent
04692d1093
commit
c7a8ffb3c0
1 changed files with 4 additions and 0 deletions
|
@ -815,6 +815,8 @@ class MachineManager(QObject):
|
|||
for stack in stacks:
|
||||
material = stack.findContainer(type="material")
|
||||
quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material])
|
||||
if not quality: #No quality profile is found for this quality type.
|
||||
quality = self._empty_quality_container
|
||||
result.append({"stack": stack, "quality": quality, "quality_changes": empty_quality_changes})
|
||||
|
||||
if extruder_stacks:
|
||||
|
@ -868,6 +870,8 @@ class MachineManager(QObject):
|
|||
|
||||
material = stack.findContainer(type="material")
|
||||
quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material])
|
||||
if not quality: #No quality profile found for this quality type.
|
||||
quality = self._empty_quality_container
|
||||
|
||||
result.append({"stack": stack, "quality": quality, "quality_changes": quality_changes})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue