[Bf-blender-cvs] [f12f6dd] asset-experiments: Fix stupid buggy behavior when init (root) dir had no trailing slash.

Bastien Montagne noreply at git.blender.org
Mon Dec 15 11:20:40 CET 2014


Commit: f12f6ddd04495f9b5b5a6c36157b9379b7359761
Author: Bastien Montagne
Date:   Mon Dec 15 11:19:43 2014 +0100
Branches: asset-experiments
https://developer.blender.org/rBf12f6ddd04495f9b5b5a6c36157b9379b7359761

Fix stupid buggy behavior when init (root) dir had no trailing slash.

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

M	source/blender/editors/space_file/filelist.c

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

diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 454b064..2ed941b 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -1763,6 +1763,8 @@ static void filelist_readjob_dir(
 
 	BLI_mutex_lock(lock);
 
+	BLI_add_slash(filelist->dir);
+
 	BLI_strncpy(dir, filelist->dir, sizeof(dir));
 	BLI_strncpy(filter_glob, filelist->filter_data.filter_glob, sizeof(filter_glob));
 
@@ -1787,6 +1789,8 @@ static void filelist_readjob_lib(
 
 	BLI_mutex_lock(lock);
 
+	BLI_add_slash(filelist->dir);
+
 	BLI_strncpy(dir, filelist->dir, sizeof(dir));
 	BLI_strncpy(filter_glob, filelist->filter_data.filter_glob, sizeof(filter_glob));




More information about the Bf-blender-cvs mailing list