mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 06:11:09 -07:00
Only exclude explicitly specified materials in the "exclude_materials" field
CURA-5344
This commit is contained in:
parent
09452b65df
commit
9627eb0fc1
1 changed files with 3 additions and 2 deletions
|
|
@ -291,9 +291,10 @@ class MaterialManager(QObject):
|
||||||
material_id_metadata_dict = dict()
|
material_id_metadata_dict = dict()
|
||||||
for node in nodes_to_check:
|
for node in nodes_to_check:
|
||||||
if node is not None:
|
if node is not None:
|
||||||
|
# Only exclude the materials that are explicitly specified in the "exclude_materials" field.
|
||||||
|
# Do not exclude other materials that are of the same type.
|
||||||
for material_id, node in node.material_map.items():
|
for material_id, node in node.material_map.items():
|
||||||
fallback_id = self.getFallbackMaterialIdByMaterialType(node.metadata["material"])
|
if material_id in machine_exclude_materials:
|
||||||
if fallback_id in machine_exclude_materials:
|
|
||||||
Logger.log("d", "Exclude material [%s] for machine [%s]",
|
Logger.log("d", "Exclude material [%s] for machine [%s]",
|
||||||
material_id, machine_definition.getId())
|
material_id, machine_definition.getId())
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue