mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
FindAllQualitiesForMachineMaterial only looks with basic materials if it found them
CURA-3911
This commit is contained in:
parent
a306b4dada
commit
9a54ff426b
2 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,8 @@ class QualityManager:
|
||||||
result = self._getFilteredContainersForStack(machine_definition, [material_container], **criteria)
|
result = self._getFilteredContainersForStack(machine_definition, [material_container], **criteria)
|
||||||
if not result:
|
if not result:
|
||||||
basic_materials = self._getBasicMaterials(material_container)
|
basic_materials = self._getBasicMaterials(material_container)
|
||||||
result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
|
if basic_materials:
|
||||||
|
result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
|
@ -759,7 +759,6 @@ class MachineManager(QObject):
|
||||||
# Fall back to a quality (which must be compatible with all other extruders)
|
# Fall back to a quality (which must be compatible with all other extruders)
|
||||||
new_qualities = quality_manager.findAllUsableQualitiesForMachineAndExtruders(
|
new_qualities = quality_manager.findAllUsableQualitiesForMachineAndExtruders(
|
||||||
self._global_container_stack, ExtruderManager.getInstance().getExtruderStacks())
|
self._global_container_stack, ExtruderManager.getInstance().getExtruderStacks())
|
||||||
|
|
||||||
if new_qualities:
|
if new_qualities:
|
||||||
new_quality_id = new_qualities[0].getId() # Just pick the first available one
|
new_quality_id = new_qualities[0].getId() # Just pick the first available one
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue