Browse Source

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.
Ghostkeeper 5 years ago
parent
commit
228fb62e60
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cura/Settings/MachineManager.py

+ 2 - 0
cura/Settings/MachineManager.py

@@ -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: