Browse Source

deepcopy value from the stack

CURA-4705
Lipu Fei 7 years ago
parent
commit
0a0db39f02
1 changed files with 3 additions and 1 deletions
  1. 3 1
      cura/Settings/SettingOverrideDecorator.py

+ 3 - 1
cura/Settings/SettingOverrideDecorator.py

@@ -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