[Bf-blender-cvs] [ad23ee7] master: Fix T49502: file browser on OS X not highlighting system folders and bookmarks.

Brecht Van Lommel noreply at git.blender.org
Sat Oct 1 19:16:47 CEST 2016


Commit: ad23ee761bb729f013ffc1f5e32f032bded9dcd6
Author: Brecht Van Lommel
Date:   Sat Oct 1 19:14:38 2016 +0200
Branches: master
https://developer.blender.org/rBad23ee761bb729f013ffc1f5e32f032bded9dcd6

Fix T49502: file browser on OS X not highlighting system folders and bookmarks.

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

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

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

diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index e71c05d..72034b4 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -559,6 +559,9 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
 				if (pathString == NULL || !CFStringGetCString(pathString, line, sizeof(line), kCFStringEncodingUTF8))
 					continue;
 
+				/* Add end slash for consistency with other platforms */
+				BLI_add_slash(line);
+
 				/* Exclude "all my files" as it makes no sense in blender fileselector */
 				/* Exclude "airdrop" if wlan not active as it would show "" ) */
 				if (!strstr(line, "myDocuments.cannedSearch") && (*line != '\0')) {




More information about the Bf-blender-cvs mailing list