mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Merge branch '4.7' of github.com:Ultimaker/Cura
This commit is contained in:
commit
44885ab9a4
2 changed files with 3 additions and 1 deletions
|
|
@ -122,6 +122,8 @@ class ContainerManager(QObject):
|
||||||
root_material.setMetaDataEntry(entry_name, entry_value)
|
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.
|
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)
|
root_material.metaDataChanged.emit(root_material)
|
||||||
|
|
||||||
|
cura.CuraApplication.CuraApplication.getInstance().getMachineManager().updateUponMaterialMetadataChange()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@pyqtSlot(str, result = str)
|
@pyqtSlot(str, result = str)
|
||||||
|
|
|
||||||
|
|
@ -1703,7 +1703,7 @@ class MachineManager(QObject):
|
||||||
return False
|
return False
|
||||||
return global_stack.qualityChanges != empty_quality_changes_container
|
return global_stack.qualityChanges != empty_quality_changes_container
|
||||||
|
|
||||||
def _updateUponMaterialMetadataChange(self) -> None:
|
def updateUponMaterialMetadataChange(self) -> None:
|
||||||
if self._global_container_stack is None:
|
if self._global_container_stack is None:
|
||||||
return
|
return
|
||||||
with postponeSignals(*self._getContainerChangedSignals(), compress = CompressTechnique.CompressPerParameterValue):
|
with postponeSignals(*self._getContainerChangedSignals(), compress = CompressTechnique.CompressPerParameterValue):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue