mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 22:26:00 +08: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
@ -897,6 +897,8 @@ class MachineManager(QObject):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
old_value = container.getProperty(setting_key, "value")
|
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:
|
if int(old_value) < 0:
|
||||||
continue
|
continue
|
||||||
if int(old_value) >= extruder_count or not self._global_container_stack.extruders[str(old_value)].isEnabled:
|
if int(old_value) >= extruder_count or not self._global_container_stack.extruders[str(old_value)].isEnabled:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user