Cleanup/refactor spacefile's 'check dir' code.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 29 Aug 2016 14:42:49 +0000 (16:42 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 29 Aug 2016 14:42:49 +0000 (16:42 +0200)
commit2090ed164f674f9b3e29975e7d902eeacae3e55f
tree43fa044685be8b90bf7034f3dfdc91e8c8cab756
parent8f215d9b527681773bb1f02b57d00afc860d8122
Cleanup/refactor spacefile's 'check dir' code.

Was kinda split in two different places (one allowed to modify given path to always get a valid one,
the other only checking for validity of given path), not nice - and broken in asset branch case.

So rather extended a bit FileList->checkdirf to handle both cases (modifying and non-modifying path).
source/blender/editors/space_file/file_intern.h
source/blender/editors/space_file/file_ops.c
source/blender/editors/space_file/file_utils.c
source/blender/editors/space_file/filelist.c
source/blender/editors/space_file/filelist.h
source/blender/editors/space_file/filesel.c