mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Fix merge conflicts
This commit is contained in:
commit
43fa4337f9
12 changed files with 114 additions and 73 deletions
|
@ -104,6 +104,14 @@ class VariantNode(ContainerNode):
|
|||
def _materialAdded(self, container: ContainerInterface) -> None:
|
||||
if container.getMetaDataEntry("type") != "material":
|
||||
return # Not interested.
|
||||
if not ContainerRegistry.getInstance().findContainersMetadata(id = container.getId()):
|
||||
# CURA-6889
|
||||
# containerAdded and removed signals may be triggered in the next event cycle. If a container gets added
|
||||
# and removed in the same event cycle, in the next cycle, the connections should just ignore the signals.
|
||||
# The check here makes sure that the container in the signal still exists.
|
||||
Logger.log("d", "Got container added signal for container [%s] but it no longer exists, do nothing.",
|
||||
container.getId())
|
||||
return
|
||||
if not self.machine.has_materials:
|
||||
return # We won't add any materials.
|
||||
material_definition = container.getMetaDataEntry("definition")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue