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:
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 564dd0ec81d..f2d1b6eab83 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -2471,13 +2471,15 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist)
BLI_assert(filelist->filelist.entries == NULL);
- if (filelist->filelist.root[0] == '/')
+ if (filelist->filelist.root[0] == '/') {
filelist->filelist.root[0] = '\0';
+ }
if (filelist->filelist.root[0]) {
idcode = groupname_to_code(filelist->filelist.root);
- if (idcode == 0)
+ if (idcode == 0) {
filelist->filelist.root[0] = '\0';
+ }
}
if (filelist->dir[0] == 0) {
@@ -2525,8 +2527,9 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist)
idcode = groupname_to_code(filelist->filelist.root);
lb = which_libbase(bmain, idcode);
- if (lb == NULL)
+ if (lb == NULL) {
return;
+ }
filelist->filelist.nbr_entries = 0;
for (id = lb->first; id; id = id->next) {
@@ -2537,8 +2540,9 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist)
/* XXX TODO: if databrowse F4 or append/link
* filelist->flags & FLF_HIDE_PARENT has to be set */
- if (!(filelist->filter_data.flags & FLF_HIDE_PARENT))
+ if (!(filelist->filter_data.flags & FLF_HIDE_PARENT)) {
filelist->filelist.nbr_entries++;
+ }
if (filelist->filelist.nbr_entries > 0) {
filelist_resize(filelist, filelist->filelist.nbr_entries);
@@ -2604,8 +2608,9 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist)
# endif
if (id->lib) {
- if (totlib == 0)
+ if (totlib == 0) {
firstlib = files;
+ }
totlib++;
}