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:
Campbell Barton 2017-09-15 05:46:30 +10:00
parent c75bd25cd8
commit 909da553e3
Notes: blender-bot 2023-02-14 06:17:13 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 4 additions and 2 deletions

View File

@ -329,10 +329,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 */