mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 19:58:59 +08: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
@ -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…
x
Reference in New Issue
Block a user