mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Fix name of compatibility category
I had the nesting wrong. 'compatibilities' is the nested sub-dict in each of these compatibility entries. Contributes to issue CURA-8585.
This commit is contained in:
parent
cfdb01caaf
commit
b854025daa
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ class PackageModel(QObject):
|
||||||
:return: Whether this package provides any material that is compatible with the material station.
|
:return: Whether this package provides any material that is compatible with the material station.
|
||||||
"""
|
"""
|
||||||
for material in subdata.get("materials", []):
|
for material in subdata.get("materials", []):
|
||||||
for compatibility in material.get("compatibilities", []):
|
for compatibility in material.get("compatibility", []):
|
||||||
if compatibility.get("material_station_optimized", False):
|
if compatibility.get("material_station_optimized", False):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
@ -162,7 +162,7 @@ class PackageModel(QObject):
|
||||||
:return: Whether this package provides any material that is compatible with the air manager.
|
:return: Whether this package provides any material that is compatible with the air manager.
|
||||||
"""
|
"""
|
||||||
for material in subdata.get("materials", []):
|
for material in subdata.get("materials", []):
|
||||||
for compatibility in material.get("compatibilities", []):
|
for compatibility in material.get("compatibility", []):
|
||||||
if compatibility.get("air_manager_optimized", False):
|
if compatibility.get("air_manager_optimized", False):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue