diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_id.h')
-rw-r--r-- | source/blender/blenkernel/BKE_lib_id.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_lib_id.h b/source/blender/blenkernel/BKE_lib_id.h index cb86d54009b..27dd1e637f3 100644 --- a/source/blender/blenkernel/BKE_lib_id.h +++ b/source/blender/blenkernel/BKE_lib_id.h @@ -67,6 +67,14 @@ void *BKE_libblock_alloc(struct Main *bmain, short type, const char *name, const ATTR_WARN_UNUSED_RESULT; void BKE_libblock_init_empty(struct ID *id) ATTR_NONNULL(1); +/* *** ID's session_uuid management. *** */ + +/* When an ID's uuid is of that value, it is unset/invalid (e.g. for runtime IDs, etc.). */ +#define MAIN_ID_SESSION_UUID_UNSET 0 + +void BKE_lib_libblock_session_uuid_reset(void); +void BKE_lib_libblock_session_uuid_ensure(struct ID *id); + void *BKE_id_new(struct Main *bmain, const short type, const char *name); void *BKE_id_new_nomain(const short type, const char *name); |