mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Handle functions in user or user-changes profiles
Normally the user hasn't got any of these unless he selected a setting to be copied for all extruders.
This commit is contained in:
parent
24b1930b14
commit
228fb62e60
1 changed files with 2 additions and 0 deletions
|
|
@ -897,6 +897,8 @@ class MachineManager(QObject):
|
|||
continue
|
||||
|
||||
old_value = container.getProperty(setting_key, "value")
|
||||
if isinstance(old_value, SettingFunction):
|
||||
old_value = old_value(self._global_container_stack)
|
||||
if int(old_value) < 0:
|
||||
continue
|
||||
if int(old_value) >= extruder_count or not self._global_container_stack.extruders[str(old_value)].isEnabled:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue