Bugfix for:[23234] Blender File Browser - Back Button does work with first directory...
authorDalai Felinto <dfelinto@gmail.com>
Mon, 9 Aug 2010 22:54:40 +0000 (22:54 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 9 Aug 2010 22:54:40 +0000 (22:54 +0000)
commit73f1d88be2197a945228a895b738b3ded0cda364
tree7a10f22dc1239b56b085646c8bc4e3b726959d35
parent825f0593e0bf99bb10a9cd8e2b0cc75b74e6e231
Bugfix for:[23234] Blender File Browser - Back Button does work with first directory entered?

For !WIN32 systems the fix was in ED_fileselect_set_params
(basically adding the first folder in the sfile->folders_prev list)

For WIN32:
I talked with Nathan (Jesterking) and he agreed that the fix in path_util.c was required too. Without that BLI_path_abs was always making WIN32 paths ending with \ to end with \\
(e.g. C:\Blender\ --> C:\Blender\\)
And this was making the folder to fail ISDIR tests.
source/blender/blenlib/intern/path_util.c
source/blender/editors/space_file/filesel.c