diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/addon_utils.py | 8 | ||||
-rw-r--r-- | release/scripts/modules/bpy/utils/__init__.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py index 123b3cb953c..560ddb9c954 100644 --- a/release/scripts/modules/addon_utils.py +++ b/release/scripts/modules/addon_utils.py @@ -193,7 +193,7 @@ def modules_refresh(module_cache=addons_fake_modules): del modules_stale -def modules(module_cache=addons_fake_modules, refresh=True): +def modules(module_cache=addons_fake_modules, *, refresh=True): if refresh or ((module_cache is addons_fake_modules) and modules._is_first): modules_refresh(module_cache) modules._is_first = False @@ -255,7 +255,7 @@ def _addon_remove(module_name): addons.remove(addon) -def enable(module_name, default_set=False, persistent=False, handle_error=None): +def enable(module_name, *, default_set=False, persistent=False, handle_error=None): """ Enables an addon by name. @@ -360,7 +360,7 @@ def enable(module_name, default_set=False, persistent=False, handle_error=None): return mod -def disable(module_name, default_set=False, handle_error=None): +def disable(module_name, *, default_set=False, handle_error=None): """ Disables an addon by name. @@ -401,7 +401,7 @@ def disable(module_name, default_set=False, handle_error=None): print("\taddon_utils.disable", module_name) -def reset_all(reload_scripts=False): +def reset_all(*, reload_scripts=False): """ Sets the addon state based on the user preferences. """ diff --git a/release/scripts/modules/bpy/utils/__init__.py b/release/scripts/modules/bpy/utils/__init__.py index 481db4659af..986d8b9f45c 100644 --- a/release/scripts/modules/bpy/utils/__init__.py +++ b/release/scripts/modules/bpy/utils/__init__.py @@ -251,7 +251,7 @@ def load_scripts(reload_scripts=False, refresh_scripts=False): _initialize() del _addon_utils._initialize else: - _addon_utils.reset_all(reload_scripts) + _addon_utils.reset_all(reload_scripts=reload_scripts) del _initialize # run the active integration preset |