mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-04 04:23:58 -06:00
Clarified comment for duplicating materials
This commit is contained in:
parent
36aab5d56b
commit
845cab5573
1 changed files with 2 additions and 1 deletions
|
@ -141,7 +141,8 @@ class MaterialManagementModel(QObject):
|
||||||
new_container.getMetaData().update(new_metadata)
|
new_container.getMetaData().update(new_metadata)
|
||||||
new_containers.append(new_container)
|
new_containers.append(new_container)
|
||||||
|
|
||||||
# Optimization. Serving the same purpose as the postponeSignals() in removeMaterial()
|
# postpone the signals emitted when duplicating materials. This is easier on the event loop; changes the
|
||||||
|
# behavior to be like a transaction. Prevents concurrency issues.
|
||||||
with postponeSignals(container_registry.containerAdded, compress=CompressTechnique.CompressPerParameterValue):
|
with postponeSignals(container_registry.containerAdded, compress=CompressTechnique.CompressPerParameterValue):
|
||||||
for container_to_add in new_containers:
|
for container_to_add in new_containers:
|
||||||
container_to_add.setDirty(True)
|
container_to_add.setDirty(True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue