From 571834457b629c1c88c77a7823ddef14f9a2646e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 13 Mar 2024 17:10:53 +1100 Subject: [PATCH] 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. --- source/blender/makesrna/intern/rna_userdef.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_userdef.cc b/source/blender/makesrna/intern/rna_userdef.cc index 239e7ac38b8..dd3180572a6 100644 --- a/source/blender/makesrna/intern/rna_userdef.cc +++ b/source/blender/makesrna/intern/rna_userdef.cc @@ -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; }