[Bf-blender-cvs] [e060c90] master: Fix assert navigating into dir w/ `.blend` suffix
Campbell Barton
noreply at git.blender.org
Thu Nov 26 05:46:07 CET 2015
Commit: e060c90ebc733cfca221a2d6487137ff612d9c37
Author: Campbell Barton
Date: Thu Nov 26 15:39:29 2015 +1100
Branches: master
https://developer.blender.org/rBe060c90ebc733cfca221a2d6487137ff612d9c37
Fix assert navigating into dir w/ `.blend` suffix
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 482be57..8851edf 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1344,7 +1344,7 @@ bool BLO_library_path_explode(const char *path, char *r_dir, char **r_group, cha
while ((slash = (char *)BLI_last_slash(r_dir))) {
char tc = *slash;
*slash = '\0';
- if (BLO_has_bfile_extension(r_dir)) {
+ if (BLO_has_bfile_extension(r_dir) && BLI_is_file(r_dir)) {
break;
}
More information about the Bf-blender-cvs
mailing list