diff options
author | Andrea Weikert <elubie@gmx.net> | 2009-11-22 23:24:36 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2009-11-22 23:24:36 +0300 |
commit | c0a6d07212d5908b3ab162ca0b29830662ec25a8 (patch) | |
tree | 441385e5f46bbbe3980b9a516c11b29fb5a89c77 /source/blender/editors/space_file | |
parent | 42f99939f62de85069251f88a2ce26f78f4b02c9 (diff) |
filebrowser
* fix typo in operator property
* respect user setting for hide dot files
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index cc0c1ca33aa..d681a58b276 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -124,7 +124,7 @@ short ED_fileselect_set_params(SpaceFile *sfile) if (op) { BLI_strncpy(params->title, op->type->name, sizeof(params->title)); - if(RNA_struct_find_property(op->ptr, "filename")) + if(RNA_struct_find_property(op->ptr, "filemode")) params->type = RNA_int_get(op->ptr, "filemode"); else params->type = FILE_SPECIAL; @@ -164,7 +164,12 @@ short ED_fileselect_set_params(SpaceFile *sfile) if (params->filter != 0) params->flag |= FILE_FILTER; - params->flag |= FILE_HIDE_DOT; + if (U.uiflag & USER_HIDE_DOT) { + params->flag |= FILE_HIDE_DOT; + } else { + params->flag &= ~FILE_HIDE_DOT; + } + if (params->type == FILE_LOADLIB) { params->flag |= RNA_boolean_get(op->ptr, "link") ? FILE_LINK : 0; |