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:
authorAndrea Weikert <elubie@gmx.net>2010-03-14 21:02:18 +0300
committerAndrea Weikert <elubie@gmx.net>2010-03-14 21:02:18 +0300
commita892bd6976be9e73796a320a36246171ddc59da0 (patch)
treea853d7593b4610578b94f9990c22c43eb85206af /source/blender/editors/space_file/filesel.c
parent07d4307af28aa4df4227ae44326831846f81da9e (diff)
fix for bugreport:
#21506 'sort by' while in append/link file browser causes files to disappear - issue was that the objects were still filtered - temporary fix until refactoring of the append/link integration
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r--source/blender/editors/space_file/filesel.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index 868e28207c5..758740e676a 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -55,6 +55,8 @@
#include "BLI_storage_types.h"
#include "BLI_dynstr.h"
+#include "BLO_readfile.h"
+
#include "BKE_context.h"
#include "BKE_screen.h"
#include "BKE_global.h"
@@ -404,7 +406,16 @@ void file_change_dir(bContext *C, int checkdir)
/* could return but just refresh the current dir */
}
filelist_setdir(sfile->files, sfile->params->dir);
-
+ /* XXX special case handling
+ behaviour of filebrowser changes when
+ browsing into .blend file */
+ if (sfile->params->type == FILE_LOADLIB) {
+ char group[GROUP_MAX];
+ char dir[FILE_MAX];
+ if (filelist_islibrary(sfile->files, dir, group)) {
+ sfile->params->flag &= ~FILE_FILTER;
+ }
+ }
if(folderlist_clear_next(sfile))
folderlist_free(sfile->folders_next);