mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:45:55 +08:00
Skip loaded instance containers
When trying to apply the fix for single extrusion machines by creating a new ExtruderStack, skip the quality changes container that has already been loaded.
This commit is contained in:
parent
8e5167be76
commit
c91eb30de9
@ -589,6 +589,9 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||||||
if parser["general"]["name"] == name:
|
if parser["general"]["name"] == name:
|
||||||
# load the container
|
# load the container
|
||||||
container_id = os.path.basename(file_path).replace(".inst.cfg", "")
|
container_id = os.path.basename(file_path).replace(".inst.cfg", "")
|
||||||
|
if self.findInstanceContainers(id = container_id):
|
||||||
|
# this container is already in the registry, skip it
|
||||||
|
continue
|
||||||
|
|
||||||
instance_container = InstanceContainer(container_id)
|
instance_container = InstanceContainer(container_id)
|
||||||
with open(file_path, "r") as f:
|
with open(file_path, "r") as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user