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:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user