Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_bpath.h
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | typedef struct BPathForeachPathData { | ||||
| void *user_data; | void *user_data; | ||||
| /* 'Private' data, caller don't need to set those. */ | /* 'Private' data, caller don't need to set those. */ | ||||
| /** The root to use as base for relative paths. Only set if `BKE_BPATH_FOREACH_PATH_ABSOLUTE` | /** The root to use as base for relative paths. Only set if `BKE_BPATH_FOREACH_PATH_ABSOLUTE` | ||||
| * flag is set, NULL otherwise. */ | * flag is set, NULL otherwise. */ | ||||
| const char *absolute_base_path; | const char *absolute_base_path; | ||||
| /** ID owning the path being processed. */ | |||||
| struct ID *owner_id; | |||||
| /** IDTypeInfo callbacks are responsible to set this boolean if they modified one or more paths. | |||||
| */ | |||||
| bool is_path_modified; | |||||
| } BPathForeachPathData; | } BPathForeachPathData; | ||||
| /** Run `bpath_data.callback_function` on all paths contained in `id`. */ | /** Run `bpath_data.callback_function` on all paths contained in `id`. */ | ||||
| void BKE_bpath_foreach_path_id(BPathForeachPathData *bpath_data, struct ID *id); | void BKE_bpath_foreach_path_id(BPathForeachPathData *bpath_data, struct ID *id); | ||||
| /** Run `bpath_data.callback_function` on all paths of all IDs in `bmain`. */ | /** Run `bpath_data.callback_function` on all paths of all IDs in `bmain`. */ | ||||
| void BKE_bpath_foreach_path_main(BPathForeachPathData *bpath_data); | void BKE_bpath_foreach_path_main(BPathForeachPathData *bpath_data); | ||||
| ▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines | |||||