mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Rename all_root_materials to all_base_files
This naming is more consistent with the naming of the metadata entry and most of the other code. Contributes to issue CURA-6600.
This commit is contained in:
parent
84e5114566
commit
a3e9316f48
1 changed files with 2 additions and 2 deletions
|
@ -69,9 +69,9 @@ class SendMaterialJob(Job):
|
||||||
def _sendMaterials(self, materials_to_send: Set[str]) -> None:
|
def _sendMaterials(self, materials_to_send: Set[str]) -> None:
|
||||||
container_registry = CuraApplication.getInstance().getContainerRegistry()
|
container_registry = CuraApplication.getInstance().getContainerRegistry()
|
||||||
all_materials = container_registry.findInstanceContainersMetadata(type = "material")
|
all_materials = container_registry.findInstanceContainersMetadata(type = "material")
|
||||||
all_root_materials = {material["base_file"] for material in all_materials if "base_file" in material} # Filters out uniques by making it a set. Don't include files without base file (i.e. empty material).
|
all_base_files = {material["base_file"] for material in all_materials if "base_file" in material} # Filters out uniques by making it a set. Don't include files without base file (i.e. empty material).
|
||||||
|
|
||||||
for root_material_id in all_root_materials:
|
for root_material_id in all_base_files:
|
||||||
if root_material_id not in materials_to_send:
|
if root_material_id not in materials_to_send:
|
||||||
# If the material does not have to be sent we skip it.
|
# If the material does not have to be sent we skip it.
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue