Blender Git Loki
Git Commits -> Revision 5796318
Revision 5796318 by Bastien Montagne (master) June 18, 2018, 10:26 (GMT) |
Fix T55503: File browser filter not working correctly. There were two issues here, introduced by rB66aa4af836: * Forgot to change length of some filter_glob var deep in filebrowser code. * Truncating filter_glob in general can be dangerous, generating unexpected patterns. Last point was the root of the issue here, truncating to 63 chars string left last group as 'match everything' `*` pattern. To fix that to some extent, added a new BLI_path_extension_glob_validate helper to BLI_path_util, which ensures we do not have last wildcards-only group in our pattern, when there are more than one group. |
Commit Details:
Full Hash: 579631819f0136ab0fbb0f6c7c21265b468940dc
Parent Commit: b66ae82
Lines Changed: +56, -4
6 Modified Paths:
/source/blender/blenlib/BLI_path_util.h (+1, -0) (Diff)
/source/blender/blenlib/intern/path_util.c (+31, -0) (Diff)
/source/blender/editors/space_file/filelist.c (+3, -2) (Diff)
/source/blender/editors/space_file/filesel.c (+4, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+16, -1) (Diff)
/source/blender/blenlib/intern/path_util.c (+31, -0) (Diff)
/source/blender/editors/space_file/filelist.c (+3, -2) (Diff)
/source/blender/editors/space_file/filesel.c (+4, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+16, -1) (Diff)