System Information
Operating system: Ubuntu
Graphics card: RTX
Blender Version
Broken: master
Worked: ?
Short description of error
addon preferences changed by code (not by user in UI) are not saved at Blender close.
Exact steps for others to reproduce the error
- Open Blender. Load Factory Settings, close Blender.
- Open Blender
- In console, change an addon preferences. For example, change device of Cycles : bpy.context.preferences.addons['cycles'].preferences['compute_device_type'] = 1 (this change to CUDA)
- Close Blender. No log saying preferences are saved.
- Open Blender again, check that device is still None. pref save is KO
- Change preferences to "CUDA" by clicking with your mouse
- Close Blender
- See that a log saying preferences are saved
- Open again, you can see that preferences are set to CUDA, pref save was OK