Extensions: treat a new repo with a blank URL as local

Now there is no difference between omitting remote_path or passing
in an empty string.
This commit is contained in:
Campbell Barton 2024-03-13 17:10:53 +11:00
parent 924561680e
commit 571834457b
1 changed files with 3 additions and 1 deletions

View File

@ -532,9 +532,11 @@ static bUserExtensionRepo *rna_userdef_extension_repo_new(const char *name,
if (remote_path) {
STRNCPY(repo->remote_path, remote_path);
repo->flag |= USER_EXTENSION_REPO_FLAG_USE_REMOTE_PATH;
}
if (repo->remote_path[0]) {
repo->flag |= USER_EXTENSION_REPO_FLAG_USE_REMOTE_PATH;
}
if (repo->custom_dirpath[0]) {
repo->flag |= USER_EXTENSION_REPO_FLAG_USE_CUSTOM_DIRECTORY;
}