Should always reslice upon settings changed

CURA-5115

When we switch a model from "support mesh" for example to "normal",
there will be no setting values in the per-object settings container,
but we should still trigger a reslice because settings have been changed.
This commit is contained in:
Lipu Fei 2018-03-19 09:45:29 +01:00
parent f407663508
commit 7bf8e399ff

View file

@ -94,12 +94,7 @@ class SettingOverrideDecorator(SceneNodeDecorator):
return any(bool(self._stack.getProperty(setting, "value")) for setting in self._non_printing_mesh_settings)
def _onSettingChanged(self, instance, property_name): # Reminder: 'property' is a built-in function
object_has_instance_setting = False
for container in self._stack.getContainers():
if container.hasProperty(instance, "value"):
object_has_instance_setting = True
break
if property_name == "value" and object_has_instance_setting:
if property_name == "value":
# Trigger slice/need slicing if the value has changed.
self._is_non_printing_mesh = self.evaluateIsNonPrintingMesh()