diff options
author | Andrea Weikert <elubie@gmx.net> | 2009-07-27 23:06:33 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2009-07-27 23:06:33 +0400 |
commit | a869bdc44e8591b8e45c4aa3b0fac43f5ae55a26 (patch) | |
tree | 5099a76c4bb17aba0a384504c0b94e8ecc16ae87 /source/blender/editors/space_file/file_panels.c | |
parent | eb40d8ef0f49873a7f262af367decb7e652e7618 (diff) |
2.5 file browser
New:
* added filter and display to some operator properties. Now file browser opens showing only .blend files and folders on file->open and on image->open changes to image display and only shows images and movies.
Fixes:
* fixed stupid removal of wrong prototype in last commit
* fixed a few warnings
Diffstat (limited to 'source/blender/editors/space_file/file_panels.c')
-rw-r--r-- | source/blender/editors/space_file/file_panels.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_panels.c b/source/blender/editors/space_file/file_panels.c index 96366b9f82b..351d1619508 100644 --- a/source/blender/editors/space_file/file_panels.c +++ b/source/blender/editors/space_file/file_panels.c @@ -121,7 +121,10 @@ static void file_panel_operator(const bContext *C, Panel *pa) continue; if(strcmp(RNA_property_identifier(prop), "filename") == 0) continue; - + if(strcmp(RNA_property_identifier(prop), "display") == 0) + continue; + if(strncmp(RNA_property_identifier(prop), "filter", 6) == 0) + continue; uiItemFullR(pa->layout, NULL, 0, op->ptr, prop, -1, 0, 0, 0, 0); } RNA_STRUCT_END; |