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>2009-09-16 00:47:34 +0400
committerAndrea Weikert <elubie@gmx.net>2009-09-16 00:47:34 +0400
commit063d806f152e003b662a0e22a19c27a4afbfb7fa (patch)
tree8af7c0a845b488c2ed3eea89b9e32a1556aa479f /source/blender/editors/space_file/space_file.c
parent22274d38079f7e1e1e0bf24e777c333961ed18f7 (diff)
2.5 filebrowser
bugfix #1: SpaceFile->files needs to be deleted on exec and cancel of the filebrowser and in init to ensure correct setting of the read function. bugfix #2: SpaceFile->params needs to be set in file_init otherwise Python can't access params in header ui.
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r--source/blender/editors/space_file/space_file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index 68eeb8718a2..27948618d03 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -159,6 +159,12 @@ static void file_init(struct wmWindowManager *wm, ScrArea *sa)
if(sfile->params) {
MEM_freeN(sfile->params);
sfile->params = 0;
+ ED_fileselect_set_params(sfile);
+ if (sfile->files) {
+ filelist_free(sfile->files);
+ MEM_freeN(sfile->files);
+ sfile->files= NULL;
+ }
}
printf("file_init\n");
}