Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/filelist.c
| Show First 20 Lines • Show All 3,011 Lines • ▼ Show 20 Lines | else { | ||||
| filelist->filelist.nbr_entries = 0; | filelist->filelist.nbr_entries = 0; | ||||
| for (id = lb->first; id; id = id->next) { | for (id = lb->first; id; id = id->next) { | ||||
| if (!(filelist->filter_data.flags & FLF_HIDE_DOT) || id->name[2] != '.') { | if (!(filelist->filter_data.flags & FLF_HIDE_DOT) || id->name[2] != '.') { | ||||
| filelist->filelist.nbr_entries++; | filelist->filelist.nbr_entries++; | ||||
| } | } | ||||
| } | } | ||||
| /* XXX TODO: if databrowse F4 or append/link | /* XXX TODO: if data-browse or append/link #FLF_HIDE_PARENT has to be set. */ | ||||
| * 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++; | filelist->filelist.nbr_entries++; | ||||
| } | } | ||||
| if (filelist->filelist.nbr_entries > 0) { | if (filelist->filelist.nbr_entries > 0) { | ||||
| filelist_resize(filelist, filelist->filelist.nbr_entries); | filelist_resize(filelist, filelist->filelist.nbr_entries); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 480 Lines • Show Last 20 Lines | |||||