Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-09-01 17:27:29 +0300
committerJulian Eisel <julian@blender.org>2021-09-01 17:28:44 +0300
commitf62eb8ac16c1bd7abe0925b8b70fb47b613fbdd8 (patch)
treeb205e84bca0fcd018fae323eb5e1f0ca618a3a7a /source/blender/editors/space_file
parent2aad8fc7bc2a45d5f749430c7cb9b82b9f6c9e49 (diff)
BPY-Docs: Add missing file context members documentation
Context members of the file space would not be shown in the context API docs.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_intern.h3
-rw-r--r--source/blender/editors/space_file/space_file.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_intern.h b/source/blender/editors/space_file/file_intern.h
index 17749d36418..905c0aeb8e0 100644
--- a/source/blender/editors/space_file/file_intern.h
+++ b/source/blender/editors/space_file/file_intern.h
@@ -92,6 +92,9 @@ void file_sfile_to_operator(struct Main *bmain, struct wmOperator *op, struct Sp
void file_operator_to_sfile(struct Main *bmain, struct SpaceFile *sfile, struct wmOperator *op);
+/* space_file.c */
+extern const char *file_context_dir[]; /* doc access */
+
/* filesel.c */
void fileselect_refresh_params(struct SpaceFile *sfile);
void fileselect_file_set(SpaceFile *sfile, const int index);
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index daf522273a9..a4f36c2a6ee 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -871,7 +871,7 @@ static void file_space_subtype_item_extend(bContext *UNUSED(C),
RNA_enum_items_add(item, totitem, rna_enum_space_file_browse_mode_items);
}
-static const char *file_context_dir[] = {
+const char *file_context_dir[] = {
"active_file",
"selected_files",
"asset_library_ref",