Blender Git Commit Log

Git Commits -> Revision 6f3a903

Revision 6f3a903 by Campbell Barton (master)
October 3, 2020, 22:33 (GMT)
Cleanup: BKE_appdir left paths set even when not found

Internally appdir functions would test if a path exists,
returning false if it doesn't, leaving the string set instead
of clearing it.

This is error prone as invalid paths could be used accidentally.

Since BKE_appdir_folder_id_user_notest & BKE_appdir_folder_id_version
depend on this, add a 'check_is_dir' argument so the path can be used
even when the directory can't be found.

Commit Details:

Full Hash: 6f3a9031f7b93e7c687edde646beed9f02d920d4
Parent Commit: d8c3ad6
Lines Changed: +164, -107

2 Modified Paths:

/source/blender/blenkernel/BKE_appdir.h (+7, -5) (Diff)
/source/blender/blenkernel/intern/appdir.c (+157, -102) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021