mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Don't load any materials for printers that don't have them
For instance the Ultimaker 2 shouldn't display any materials. Contributes to issue CURA-6600.
This commit is contained in:
parent
295ad564c0
commit
6f77c8735c
2 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,7 @@ class MachineNode(ContainerNode):
|
|||
# Some of the metadata is cached upon construction here.
|
||||
# ONLY DO THAT FOR METADATA THAT DOESN'T CHANGE DURING RUNTIME!
|
||||
# Otherwise you need to keep it up-to-date during runtime.
|
||||
self.has_materials = parseBool(my_metadata.get("has_materials", "true"))
|
||||
self.has_machine_materials = parseBool(my_metadata.get("has_machine_materials", "false"))
|
||||
self.has_machine_quality = parseBool(my_metadata.get("has_machine_quality", "false"))
|
||||
self.quality_definition = my_metadata.get("quality_definition", container_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue