Revision: 27491
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27491
Author:   elubie
Date:     2010-03-14 19:02:18 +0100 (Sun, 14 Mar 2010)

Log Message:
-----------
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

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_file/filesel.c

Modified: trunk/blender/source/blender/editors/space_file/filesel.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/filesel.c   2010-03-14 
17:58:14 UTC (rev 27490)
+++ trunk/blender/source/blender/editors/space_file/filesel.c   2010-03-14 
18:02:18 UTC (rev 27491)
@@ -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 @@
                        /* 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);
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to