From b416c3da3cdfe4604b08f661362edff93393eef1 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 15 Nov 2023 11:33:36 +0100 Subject: [PATCH] Minor cleanup/precision to some comments regarding ID management. --- source/blender/blenkernel/BKE_lib_id.h | 3 ++- source/blender/makesdna/DNA_ID.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/BKE_lib_id.h b/source/blender/blenkernel/BKE_lib_id.h index 88b9ef144aa..9760b452777 100644 --- a/source/blender/blenkernel/BKE_lib_id.h +++ b/source/blender/blenkernel/BKE_lib_id.h @@ -518,7 +518,8 @@ void BKE_lib_id_expand_local(struct Main *bmain, struct ID *id, int flags); /** * Ensures given ID has a unique name in given listbase. * - * Only for local IDs (linked ones already have a unique ID in their library). + * Uniqueness is only ensured within the ID's library (nullptr for local ones), libraries act as + * some kind of namespace for IDs. * * \param name: The new name of the given ID, if NULL the current given ID name is used instead. * \param do_linked_data: if true, also ensure a unique name in case the given \a id is linked diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index ea6bb898998..9ed5c7bbde6 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -933,7 +933,7 @@ enum { LIB_TAG_TEMP_MAIN = 1 << 20, /** General ID management info, for freeing or copying behavior e.g. */ /** - * ID is not listed/stored in Main database. + * ID is not listed/stored in any #Main database. * * RESET_NEVER */