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:
Ghostkeeper 2019-06-03 14:15:40 +02:00
parent 24b1930b14
commit 228fb62e60
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276

View File

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