mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:29:02 +08:00
Set container entry to empty if it was not found in the original container
This commit is contained in:
parent
dc84141714
commit
317576e983
@ -229,6 +229,8 @@ class GlobalStack(ContainerStack):
|
|||||||
actual_container = self.findContainer(type = type_name)
|
actual_container = self.findContainer(type = type_name)
|
||||||
if actual_container:
|
if actual_container:
|
||||||
new_containers[index] = actual_container
|
new_containers[index] = actual_container
|
||||||
|
else:
|
||||||
|
new_containers[index] = self._empty_instance_container
|
||||||
|
|
||||||
print("containers after", new_containers)
|
print("containers after", new_containers)
|
||||||
self._containers = new_containers
|
self._containers = new_containers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user