diff options
Diffstat (limited to 'plugins/UM3NetworkPrinting/src/Network/SendMaterialJob.py')
-rw-r--r-- | plugins/UM3NetworkPrinting/src/Network/SendMaterialJob.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/UM3NetworkPrinting/src/Network/SendMaterialJob.py b/plugins/UM3NetworkPrinting/src/Network/SendMaterialJob.py index 2740f86605..28f6b29dd9 100644 --- a/plugins/UM3NetworkPrinting/src/Network/SendMaterialJob.py +++ b/plugins/UM3NetworkPrinting/src/Network/SendMaterialJob.py @@ -81,6 +81,8 @@ class SendMaterialJob(Job): container_registry = CuraApplication.getInstance().getContainerRegistry() all_materials = container_registry.findInstanceContainersMetadata(type = "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). + if "empty_material" in all_base_files: + all_base_files.remove("empty_material") # Don't send the empty material. for root_material_id in all_base_files: if root_material_id not in materials_to_send: |