mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 06:09:38 +08:00
Ensure that changing material type results in profile re-evaluation
CURA-7657
This commit is contained in:
parent
ea7dc0ff01
commit
907caa53f0
@ -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…
x
Reference in New Issue
Block a user