Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_library_remap.h
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | enum { | ||||
| /* This tells the callback func to force setting IDs using target one with a 'never NULL' pointer to NULL. | /* This tells the callback func to force setting IDs using target one with a 'never NULL' pointer to NULL. | ||||
| * WARNING! Use with extreme care, this will leave database in broken state and can cause crashes very easily! */ | * WARNING! Use with extreme care, this will leave database in broken state and can cause crashes very easily! */ | ||||
| ID_REMAP_FORCE_NEVER_NULL_USAGE = 1 << 3, | ID_REMAP_FORCE_NEVER_NULL_USAGE = 1 << 3, | ||||
| /* Do not consider proxy/_group pointers of local objects as indirect usages... | /* Do not consider proxy/_group pointers of local objects as indirect usages... | ||||
| * Our oh-so-beloved proxies again... Do not consider data used by local proxy object as indirect usage. | * Our oh-so-beloved proxies again... Do not consider data used by local proxy object as indirect usage. | ||||
| * This is needed e.g. in reload scenario, since we have to ensure remapping of Armature data of local proxy | * This is needed e.g. in reload scenario, since we have to ensure remapping of Armature data of local proxy | ||||
| * is also performed. Usual nightmare... */ | * is also performed. Usual nightmare... */ | ||||
| ID_REMAP_NO_INDIRECT_PROXY_DATA_USAGE = 1 << 4, | ID_REMAP_NO_INDIRECT_PROXY_DATA_USAGE = 1 << 4, | ||||
| /* Do not remap static override pointers. */ | |||||
| ID_REMAP_SKIP_STATIC_OVERRIDE = 1 << 5, | |||||
| }; | }; | ||||
| /* Note: Requiring new_id to be non-null, this *may* not be the case ultimately, but makes things simpler for now. */ | /* Note: Requiring new_id to be non-null, this *may* not be the case ultimately, but makes things simpler for now. */ | ||||
| void BKE_libblock_remap_locked( | void BKE_libblock_remap_locked( | ||||
| struct Main *bmain, void *old_idv, void *new_idv, | struct Main *bmain, void *old_idv, void *new_idv, | ||||
| const short remap_flags) ATTR_NONNULL(1, 2); | const short remap_flags) ATTR_NONNULL(1, 2); | ||||
| void BKE_libblock_remap( | void BKE_libblock_remap( | ||||
| struct Main *bmain, void *old_idv, void *new_idv, | struct Main *bmain, void *old_idv, void *new_idv, | ||||
| Show All 25 Lines | |||||