mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Make the global stack value mirror the stack value appropriate for this setting
CURA-1758
This commit is contained in:
parent
8537c5a0e2
commit
2387da1a28
1 changed files with 6 additions and 0 deletions
|
@ -198,6 +198,12 @@ class MachineManager(QObject):
|
|||
def _onGlobalPropertyChanged(self, key, property_name):
|
||||
if property_name == "value":
|
||||
self.globalValueChanged.emit()
|
||||
|
||||
if self._active_container_stack and self._active_container_stack != self._global_container_stack:
|
||||
# Make the global stack value mirror the stack value appropriate for this setting
|
||||
if self._active_container_stack.getProperty("extruder_nr", "value") == int(self._active_container_stack.getProperty(key, "global_inherits_stack")):
|
||||
self._global_container_stack.getTop().setProperty(key, "value", self._active_container_stack.getProperty(key, "value"))
|
||||
|
||||
if property_name == "validationState":
|
||||
if self._global_stack_valid:
|
||||
changed_validation_state = self._active_container_stack.getProperty(key, property_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue