diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-30 16:12:03 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-30 16:12:03 +0300 |
commit | c7834e0e6e12cd613d645f2178ea0495a28592ab (patch) | |
tree | eab66e65230f8f42c6910581fb244c9fb11cff8d /source/blender/blenloader | |
parent | 9d0b8486c89e70b59325b84107394990ae00c3cb (diff) |
And here's a decent fix for correctly recognizing the the
.blend1 etc backups.
Proves again that lazy coders only make bad code :)
Implementation note:
The filewindow now recoginizes .blend version backups as
a special type, so filtering for .blend files themselves
ignores it. However, they're recognized correctly as valid
.blend files, and draw an icon as .blend file when filtering
is off. Can become a distinct icon if we want...
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 77230637342..b56ab4a8e00 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1039,7 +1039,7 @@ void blo_freefiledata(FileData *fd) int BLO_has_bfile_extension(char *str) { - return (BLI_testextensie(str, ".ble") || BLI_testextensie(str, ".blend")||BLI_testextensie(str, ".blend.gz")); + return (BLI_testextensie(str, ".ble") || BLI_testextensie(str, ".blend") || BLI_testextensie(str, ".blend.gz")); } int BLO_is_a_library(const char *path, char *dir, char *group) |