[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32115] trunk/blender/source/blender/ editors/space_file/filesel.c: fix for own error with recent patch edits, globbing wasnt being cleared so importing an OBJ would keep *. obj when opening a blend.

Campbell Barton ideasman42 at gmail.com
Sat Sep 25 10:29:26 CEST 2010


Revision: 32115
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32115
Author:   campbellbarton
Date:     2010-09-25 10:29:25 +0200 (Sat, 25 Sep 2010)

Log Message:
-----------
fix for own error with recent patch edits, globbing wasnt being cleared so importing an OBJ would keep *.obj when opening a blend.

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-09-25 06:45:28 UTC (rev 32114)
+++ trunk/blender/source/blender/editors/space_file/filesel.c	2010-09-25 08:29:25 UTC (rev 32115)
@@ -173,6 +173,9 @@
 			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 @@
 		params->flag |= FILE_HIDE_DOT;
 		params->display = FILE_SHORTDISPLAY;
 		params->filter = 0;
+		params->filter_glob[0] = '\0';
 		params->sort = FILE_SORT_ALPHA;
 	}
 





More information about the Bf-blender-cvs mailing list