CURA-4400 only reevaluate non printing mesh if the setting actually matters

This commit is contained in:
Jack Ha 2018-03-06 17:19:31 +01:00
parent 32ce458516
commit bab46d7048

View file

@ -95,7 +95,7 @@ class SettingOverrideDecorator(SceneNodeDecorator):
def _onSettingChanged(self, instance, property_name): # Reminder: 'property' is a built-in function
# Trigger slice/need slicing if the value has changed.
if property_name == "value":
if property_name == "value" and instance in self._non_printing_mesh_settings:
self._is_non_printing_mesh = self.evaluateIsNonPrintingMesh()
Application.getInstance().getBackend().needsSlicing()