Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_lib_id.h
| Show First 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | |||||
| * `USER_DUP_LINKED_ID` and `USER_DUP_ACT` have an effect here. | * `USER_DUP_LINKED_ID` and `USER_DUP_ACT` have an effect here. | ||||
| * \param copy_flags flags passed to #BKE_id_copy_ex. | * \param copy_flags flags passed to #BKE_id_copy_ex. | ||||
| */ | */ | ||||
| struct ID *BKE_id_copy_for_duplicate(struct Main *bmain, | struct ID *BKE_id_copy_for_duplicate(struct Main *bmain, | ||||
| struct ID *id, | struct ID *id, | ||||
| uint duplicate_flags, | uint duplicate_flags, | ||||
| int copy_flags); | int copy_flags); | ||||
| /* Special version of BKE_id_copy which is safe from using evaluated id as source with a copy | |||||
| * result apperaring in the main database. | |||||
mont29: appearing | |||||
| * Takes care of the referenced data-blocks consistency. */ | |||||
| struct ID *BKE_id_copy_for_use_in_bmain(struct Main *bmain, const struct ID *id); | |||||
| /** | /** | ||||
| * Does a mere memory swap over the whole IDs data (including type-specific memory). | * Does a mere memory swap over the whole IDs data (including type-specific memory). | ||||
| * \note Most internal ID data itself is not swapped (only IDProperties are). | * \note Most internal ID data itself is not swapped (only IDProperties are). | ||||
| * | * | ||||
| * \param bmain: May be NULL, in which case there will be no remapping of internal pointers to | * \param bmain: May be NULL, in which case there will be no remapping of internal pointers to | ||||
| * itself. | * itself. | ||||
| */ | */ | ||||
| void BKE_lib_id_swap(struct Main *bmain, struct ID *id_a, struct ID *id_b); | void BKE_lib_id_swap(struct Main *bmain, struct ID *id_a, struct ID *id_b); | ||||
| ▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines | |||||
appearing