mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #106840: Add-ons not loading from custom script directories
`script_paths()` wasn't updated correctly, but that was hidden by some compabtibility logic that was in the patch earlier. Only with my last change to the PR before merging it that was removed and the error became quite visible.
This commit is contained in:
parent
3f4f975228
commit
ac09d18e4e
1 changed files with 4 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ def script_paths(*, subdir=None, user_pref=True, check_all=False, use_user=True)
|
|||
|
||||
:arg subdir: Optional subdir.
|
||||
:type subdir: string
|
||||
:arg user_pref: Include the user preference script path.
|
||||
:arg user_pref: Include the user preference script paths.
|
||||
:type user_pref: bool
|
||||
:arg check_all: Include local, user and system paths rather just the paths Blender uses.
|
||||
:type check_all: bool
|
||||
|
|
@ -387,6 +387,9 @@ def script_paths(*, subdir=None, user_pref=True, check_all=False, use_user=True)
|
|||
if use_user:
|
||||
base_paths.append(path_user)
|
||||
|
||||
if user_pref:
|
||||
base_paths.extend(script_paths_pref())
|
||||
|
||||
scripts = []
|
||||
for path in base_paths:
|
||||
if not path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue