|
The addons panel draw function calls addon_utils.modules() which in turn retrieves a list of fake modules from the script paths every time. This can become costly when network paths are included for addons. Solution is to put the scanning process into a dedicated function and disable it in frequently called draw and filter functions, i.e. in these cases the cached addons_fake_modules list will be used instead.
In order to ensure a valid list of addon modules in most cases when script paths are changed or addons get installed manually the used preferences now have a "scan_addons" flag which forces a one-time rescan of the addon modules. Note that this does not cover cases where addons get added or deleted manually outside Blender, for such cases there is now also an explicit "Scan" operator button in the addons UI.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+51 lines, -10 lines) |
Patch |
|
|
intern/tools/bpy_introspect_ui.py
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
|
release/scripts/modules/addon_utils.py
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
|
release/scripts/modules/bl_i18n_utils/utils.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
|
release/scripts/startup/bl_operators/wm.py
|
View
|
|
5 chunks |
+17 lines, -4 lines |
0 comments
|
Download
|
|
|
release/scripts/startup/bl_ui/__init__.py
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
|
release/scripts/startup/bl_ui/space_userpref.py
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
|
source/blender/blenkernel/intern/blender.c
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
|
source/blender/editors/interface/resources.c
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesdna/DNA_userdef_types.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesrna/intern/rna_userdef.c
|
View
|
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
Total messages: 2
|