mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Do not try to set a property of a read-only material
Contributes to CURA-341
This commit is contained in:
parent
e80a999740
commit
827c7b84fd
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer):
|
|||
|
||||
## Overridden from InstanceContainer
|
||||
def setProperty(self, key, property_name, property_value, container = None):
|
||||
if self.isReadOnly():
|
||||
return
|
||||
|
||||
super().setProperty(key, property_name, property_value)
|
||||
|
||||
for container in UM.Settings.ContainerRegistry.getInstance().findInstanceContainers(GUID = self.getMetaDataEntry("GUID")):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue