main sync #3

Merged
Patrick Busch merged 318 commits from blender/blender:main into main 2023-03-17 15:52:21 +01:00
Showing only changes of commit b80f6c4017 - Show all commits

View File

@ -33,9 +33,11 @@ bool BKE_has_bfile_extension(const char *str);
* *
* \param path: the full path to explode. * \param path: the full path to explode.
* \param r_dir: the string that'll contain path up to blend file itself ('library' path). * \param r_dir: the string that'll contain path up to blend file itself ('library' path).
* WARNING! Must be #FILE_MAX_LIBEXTRA long (it also stores group and name strings)! * WARNING! Must be at least #FILE_MAX_LIBEXTRA long (it also stores group and name strings)!
* \param r_group: the string that'll contain 'group' part of the path, if any. May be NULL. * \param r_group: a pointer within `r_dir` to the 'group' part of the path, if any ('\0'
* \param r_name: the string that'll contain data's name part of the path, if any. May be NULL. * terminated). May be NULL.
* \param r_name: a pointer within `r_dir` to the data-block name, if any ('\0' terminated). May be
* NULL.
* \return true if path contains a blend file. * \return true if path contains a blend file.
*/ */
bool BKE_library_path_explode(const char *path, char *r_dir, char **r_group, char **r_name); bool BKE_library_path_explode(const char *path, char *r_dir, char **r_group, char **r_name);