From 000c4d5f41ea377265a13b29f76019d0d0c8a7d0 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 25 Jul 2016 09:58:33 +0200 Subject: [PATCH] Fixed issue where changing a setting would cause mismatch between stacks CURA-1758 --- cura/Settings/MachineManager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index d5ccfea88e..9f51591a58 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -246,11 +246,16 @@ class MachineManager(QObject): if len(containers) > 1: for index in range(1, len(containers)): deeper_container = containers[index] + if deeper_container.getProperty(key, "value") is None: + continue # Deeper container does not have the value, so continue. if deeper_container.getProperty(key, "value") == new_value: # Removal will result in correct value, so do that. # We do this to prevent the reset from showing up unneeded. instance_needs_removal = True break + else: + # Container has the value, but it's not the same. Stop looking. + break if instance_needs_removal: extruder_stack.getTop().removeInstance(key) else: