mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Add doc for apply_to_all in XMLMaterialProfile
This commit is contained in:
parent
6781627672
commit
6c42b662c8
1 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,12 @@ class XmlMaterialProfile(InstanceContainer):
|
||||||
|
|
||||||
## Overridden from InstanceContainer
|
## Overridden from InstanceContainer
|
||||||
# set the meta data for all machine / variant combinations
|
# set the meta data for all machine / variant combinations
|
||||||
|
#
|
||||||
|
# The "apply_to_all" flag indicates whether this piece of metadata should be applied to all material containers
|
||||||
|
# or just this specific container.
|
||||||
|
# For example, when you change the material name, you want to apply it to all its derived containers, but for
|
||||||
|
# some specific settings, they should only be applied to a machine/variant-specific container.
|
||||||
|
#
|
||||||
def setMetaDataEntry(self, key, value, apply_to_all = True):
|
def setMetaDataEntry(self, key, value, apply_to_all = True):
|
||||||
registry = ContainerRegistry.getInstance()
|
registry = ContainerRegistry.getInstance()
|
||||||
if registry.isReadOnly(self.getId()):
|
if registry.isReadOnly(self.getId()):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue