From 317576e98305d02b8ffa74157715e7f7cd67064f Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 28 Mar 2017 18:14:16 +0200 Subject: [PATCH] Set container entry to empty if it was not found in the original container --- cura/Settings/GlobalStack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/Settings/GlobalStack.py b/cura/Settings/GlobalStack.py index d5c49614d6..236c6f01bf 100644 --- a/cura/Settings/GlobalStack.py +++ b/cura/Settings/GlobalStack.py @@ -229,6 +229,8 @@ class GlobalStack(ContainerStack): actual_container = self.findContainer(type = type_name) if actual_container: new_containers[index] = actual_container + else: + new_containers[index] = self._empty_instance_container print("containers after", new_containers) self._containers = new_containers