deepcopy value from the stack

CURA-4705
This commit is contained in:
Lipu Fei 2017-12-21 09:27:05 +01:00
parent 419dc6f59a
commit 0a0db39f02

View file

@ -59,7 +59,9 @@ class SettingOverrideDecorator(SceneNodeDecorator):
# Properly set the right extruder on the copy # Properly set the right extruder on the copy
deep_copy.setActiveExtruder(self._extruder_stack) deep_copy.setActiveExtruder(self._extruder_stack)
deep_copy._is_non_printing_mesh = self._is_non_printing_mesh # use value from the stack because there can be a delay in signal triggering and "_is_non_printing_mesh"
# has not been updated yet.
deep_copy._is_non_printing_mesh = any(bool(self._stack.getProperty(setting, "value")) for setting in self._non_printing_mesh_settings)
return deep_copy return deep_copy