mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -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)
|
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
|
def _onSettingChanged(self, instance, property_name): # Reminder: 'property' is a built-in function
|
||||||
object_has_instance_setting = False
|
if property_name == "value":
|
||||||
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:
|
|
||||||
# Trigger slice/need slicing if the value has changed.
|
# Trigger slice/need slicing if the value has changed.
|
||||||
self._is_non_printing_mesh = self.evaluateIsNonPrintingMesh()
|
self._is_non_printing_mesh = self.evaluateIsNonPrintingMesh()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue