mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
PyAPI: don't adjust prefs when an fails to load
Recent addons commit meant that addons would be enabled even if they weren't found. This would give an error (which is fine), but also remove from preferences.
This commit is contained in:
parent
2dfe5e30ac
commit
3ff3f563e5
4 changed files with 9 additions and 7 deletions
|
|
@ -74,7 +74,7 @@ def load_addons():
|
|||
|
||||
for mod in modules:
|
||||
mod_name = mod.__name__
|
||||
addon_utils.enable(mod_name)
|
||||
addon_utils.enable(mod_name, default_set=True)
|
||||
assert(mod_name in addons)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue