mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Prevent abstract color profiles to be filtered out for machines that support them.
CURA-11634
This commit is contained in:
parent
485b94fe06
commit
2c63e33b01
2 changed files with 5 additions and 2 deletions
|
@ -919,7 +919,9 @@ class XmlMaterialProfile(InstanceContainer):
|
||||||
base_metadata["definition"] = "fdmprinter"
|
base_metadata["definition"] = "fdmprinter"
|
||||||
|
|
||||||
# Certain materials are loaded but should not be visible / selectable to the user.
|
# Certain materials are loaded but should not be visible / selectable to the user.
|
||||||
base_metadata["visible"] = not base_metadata.get("abstract_color", False)
|
# Only show abstract color profiles (Any Color) if the machine supports them
|
||||||
|
base_metadata["visible"] = (not base_metadata.get("abstract_color", False)
|
||||||
|
or base_metadata.get("supports_abstract_color", False))
|
||||||
|
|
||||||
compatible_entries = data.iterfind("./um:settings/um:setting[@key='hardware compatible']", cls.__namespaces)
|
compatible_entries = data.iterfind("./um:settings/um:setting[@key='hardware compatible']", cls.__namespaces)
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
"preferred_quality_type": "normal",
|
"preferred_quality_type": "normal",
|
||||||
"machine_extruder_trains": { "0": "fdmextruder" },
|
"machine_extruder_trains": { "0": "fdmextruder" },
|
||||||
"supports_usb_connection": true,
|
"supports_usb_connection": true,
|
||||||
"supports_network_connection": false
|
"supports_network_connection": false,
|
||||||
|
"supports_abstract_color": false
|
||||||
},
|
},
|
||||||
"settings":
|
"settings":
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue