mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:49:00 +08: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
@ -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…
x
Reference in New Issue
Block a user