From bb42703ea34e539e441dd90f5cbba16599e91506 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 27 Jun 2013 01:10:19 +0000 Subject: - remove edge collapse loop operator (now replaced by dissolve). - fix missing null pointer check from own recent changes. - add asserts if BLI path functions are given wrong id's --- source/blender/blenlib/intern/path_util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenlib/intern/path_util.c') diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 1f96c10e712..fe50c2abcc1 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -1222,6 +1222,9 @@ const char *BLI_get_folder(int folder_id, const char *subfolder) if (get_path_local(path, "python", subfolder, ver)) break; if (get_path_system(path, "python", subfolder, "BLENDER_SYSTEM_PYTHON", ver)) break; return NULL; + + default: + BLI_assert(0); } return path; @@ -1248,6 +1251,8 @@ const char *BLI_get_user_folder_notest(int folder_id, const char *subfolder) case BLENDER_USER_SCRIPTS: get_path_user(path, "scripts", subfolder, "BLENDER_USER_SCRIPTS", ver); break; + default: + BLI_assert(0); } if ('\0' == path[0]) { return NULL; -- cgit v1.2.3