[Bf-blender-cvs] [4eb628e] master: Fix T42499: Make sure directories are not interpreted as libraries

julianeisel noreply at git.blender.org
Mon Nov 10 18:53:57 CET 2014


Commit: 4eb628e204a71137584ae7e57a0ef42ad770b12f
Author: julianeisel
Date:   Mon Nov 10 18:51:56 2014 +0100
Branches: master
https://developer.blender.org/rB4eb628e204a71137584ae7e57a0ef42ad770b12f

Fix T42499: Make sure directories are not interpreted as libraries

===================================================================

M	source/blender/blenloader/intern/readfile.c

===================================================================

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index d99500d..2a3d985 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1155,6 +1155,9 @@ bool BLO_is_a_library(const char *path, char *dir, char *group)
 	int len;
 	char *fd;
 	
+	/* if path leads to a directory we can be sure we're not in a library */
+	if (BLI_is_dir(path)) return 0;
+
 	strcpy(dir, path);
 	len = strlen(dir);
 	if (len < 7) return 0;




More information about the Bf-blender-cvs mailing list