mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix bpy.utils.resource_path('SYSTEM') output
Would return the test path for developer builds:
{blender-dirname/release}
Now return an empty string when no path is found.
This commit is contained in:
parent
0641069778
commit
21ecdacdf1
1 changed files with 4 additions and 2 deletions
|
|
@ -328,10 +328,12 @@ static bool get_path_system(
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/* try EXECUTABLE_DIR/release/folder_name */
|
||||
if (test_path(targetpath, targetpath_len, bprogdir, "release", relfolder))
|
||||
if (test_path(targetpath, targetpath_len, bprogdir, "release", relfolder)) {
|
||||
return true;
|
||||
}
|
||||
/* never use if not existing. */
|
||||
targetpath[0] = '\0';
|
||||
|
||||
/* end developer overrides */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue