mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:29:05 +08:00
Optimize MaterialsModel update
CURA-4546
This commit is contained in:
parent
1db448d7d8
commit
2397b68cd7
@ -19,3 +19,7 @@ class MaterialsModel(InstanceContainersModel):
|
||||
def _onContainerMetaDataChanged(self, container):
|
||||
if container.getMetaDataEntry("type") == "material": #Only need to update if a material was changed.
|
||||
self._update()
|
||||
|
||||
def _onContainerChanged(self, container):
|
||||
if container.getMetaDataEntry("type", "") == "material":
|
||||
super()._onContainerChanged(container)
|
||||
|
Loading…
x
Reference in New Issue
Block a user