diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-08-18 14:54:21 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-08-18 14:54:21 +0300 |
commit | 907caa53f0aa92f56e63517fa0ab44d60131e3c7 (patch) | |
tree | 506b43ed2da00ade532f6ce9f494252c05691a78 | |
parent | ea7dc0ff018be56099fd39c1c80e10952e8c6cb5 (diff) |
Ensure that changing material type results in profile re-evaluation
CURA-7657
-rw-r--r-- | cura/Settings/ContainerManager.py | 2 | ||||
-rwxr-xr-x | cura/Settings/MachineManager.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cura/Settings/ContainerManager.py b/cura/Settings/ContainerManager.py index 09a6bb5bb6..80a0d64474 100644 --- a/cura/Settings/ContainerManager.py +++ b/cura/Settings/ContainerManager.py @@ -122,6 +122,8 @@ class ContainerManager(QObject): root_material.setMetaDataEntry(entry_name, entry_value) if sub_item_changed: #If it was only a sub-item that has changed then the setMetaDataEntry won't correctly notice that something changed, and we must manually signal that the metadata changed. root_material.metaDataChanged.emit(root_material) + + cura.CuraApplication.CuraApplication.getInstance().getMachineManager().updateUponMaterialMetadataChange() return True @pyqtSlot(str, result = str) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index da1d13aa4e..c7c3fcee18 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -1703,7 +1703,7 @@ class MachineManager(QObject): return False return global_stack.qualityChanges != empty_quality_changes_container - def _updateUponMaterialMetadataChange(self) -> None: + def updateUponMaterialMetadataChange(self) -> None: if self._global_container_stack is None: return with postponeSignals(*self._getContainerChangedSignals(), compress = CompressTechnique.CompressPerParameterValue): |