forked from bartvdbraak/blender
Cleanup: line length, assignment
This commit is contained in:
parent
4bdb2d4885
commit
2830f687aa
@ -50,18 +50,18 @@ __all__ = (
|
|||||||
"unregister_class",
|
"unregister_class",
|
||||||
"unregister_module",
|
"unregister_module",
|
||||||
"user_resource",
|
"user_resource",
|
||||||
)
|
)
|
||||||
|
|
||||||
from _bpy import (
|
from _bpy import (
|
||||||
_utils_units as units,
|
_utils_units as units,
|
||||||
blend_paths,
|
blend_paths,
|
||||||
escape_identifier,
|
escape_identifier,
|
||||||
register_class,
|
register_class,
|
||||||
resource_path,
|
resource_path,
|
||||||
script_paths as _bpy_script_paths,
|
script_paths as _bpy_script_paths,
|
||||||
unregister_class,
|
unregister_class,
|
||||||
user_resource as _user_resource,
|
user_resource as _user_resource,
|
||||||
)
|
)
|
||||||
|
|
||||||
import bpy as _bpy
|
import bpy as _bpy
|
||||||
import os as _os
|
import os as _os
|
||||||
@ -143,8 +143,7 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
|
|||||||
as modules.
|
as modules.
|
||||||
:type refresh_scripts: bool
|
:type refresh_scripts: bool
|
||||||
"""
|
"""
|
||||||
use_time = _bpy.app.debug_python
|
use_time = use_class_register_check = _bpy.app.debug_python
|
||||||
use_class_register_check = use_time
|
|
||||||
|
|
||||||
if use_time:
|
if use_time:
|
||||||
import time
|
import time
|
||||||
@ -163,7 +162,8 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
|
|||||||
for module_name in [ext.module for ext in _user_preferences.addons]:
|
for module_name in [ext.module for ext in _user_preferences.addons]:
|
||||||
_addon_utils.disable(module_name)
|
_addon_utils.disable(module_name)
|
||||||
|
|
||||||
# *AFTER* unregistering all add-ons, otherwise all calls to unregister_module() will silently fail (do nothing).
|
# *AFTER* unregistering all add-ons, otherwise all calls to
|
||||||
|
# unregister_module() will silently fail (do nothing).
|
||||||
_bpy_types.TypeMap.clear()
|
_bpy_types.TypeMap.clear()
|
||||||
|
|
||||||
def register_module_call(mod):
|
def register_module_call(mod):
|
||||||
|
Loading…
Reference in New Issue
Block a user