From ad23ee761bb729f013ffc1f5e32f032bded9dcd6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 1 Oct 2016 19:14:38 +0200 Subject: Fix T49502: file browser on OS X not highlighting system folders and bookmarks. --- source/blender/editors/space_file/fsmenu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index e71c05d19c5..72034b4f828 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')) { -- cgit v1.2.3