Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bpy/utils/__init__.py
| Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | def load_scripts(reload_scripts=False, refresh_scripts=False): | ||||
| if _initialize is not None: | if _initialize is not None: | ||||
| # first time, use fast-path | # first time, use fast-path | ||||
| _initialize() | _initialize() | ||||
| del _addon_utils._initialize | del _addon_utils._initialize | ||||
| else: | else: | ||||
| _addon_utils.reset_all(reload_scripts=reload_scripts) | _addon_utils.reset_all(reload_scripts=reload_scripts) | ||||
| del _initialize | del _initialize | ||||
| # load default key configuration | |||||
| filepath = preset_find("blender", "keyconfig") | |||||
| if filepath: | |||||
| keyconfig_set(filepath) | |||||
| # run the active integration preset | # run the active integration preset | ||||
| filepath = preset_find(_user_preferences.inputs.active_keyconfig, | filepath = preset_find(_user_preferences.inputs.active_keyconfig, | ||||
| "keyconfig") | "keyconfig") | ||||
| if filepath: | if filepath: | ||||
| keyconfig_set(filepath) | keyconfig_set(filepath) | ||||
| if reload_scripts: | if reload_scripts: | ||||
| ▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines | |||||