mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
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:
parent
f407663508
commit
7bf8e399ff
1 changed files with 1 additions and 6 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue