mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Don't show invisible materials in material selection
CURA-10953
This commit is contained in:
parent
331ff75315
commit
1a41f2650a
2 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,10 @@ class MaterialBrandsModel(BaseMaterialsModel):
|
|||
if bool(container_node.getMetaDataEntry("removed", False)):
|
||||
continue
|
||||
|
||||
# Ignore materials that are marked as not visible for whatever reason
|
||||
if not bool(container_node.getMetaDataEntry("visible", True)):
|
||||
continue
|
||||
|
||||
# Add brands we haven't seen yet to the dict, skipping generics
|
||||
brand = container_node.getMetaDataEntry("brand", "")
|
||||
if brand.lower() == "generic":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue