fix for own error with recent patch edits, globbing wasnt being cleared so importing...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 25 Sep 2010 08:29:25 +0000 (08:29 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 25 Sep 2010 08:29:25 +0000 (08:29 +0000)
source/blender/editors/space_file/filesel.c

index ccdf08551041b59bde7afb469a8b4321b1b1d1f4..7192870bcc8efc9fb0f392c65a63ca0626623726 100644 (file)
@@ -173,6 +173,9 @@ short ED_fileselect_set_params(SpaceFile *sfile)
                        RNA_string_get(op->ptr, "filter_glob", params->filter_glob);
                        params->filter |= (OPERATORFILE|FOLDERFILE);
                }
+               else {
+                       params->filter_glob[0] = '\0';
+               }
 
                if (params->filter != 0) {
                        if (U.uiflag & USER_FILTERFILEEXTS) {
@@ -206,6 +209,7 @@ short ED_fileselect_set_params(SpaceFile *sfile)
                params->flag |= FILE_HIDE_DOT;
                params->display = FILE_SHORTDISPLAY;
                params->filter = 0;
+               params->filter_glob[0] = '\0';
                params->sort = FILE_SORT_ALPHA;
        }