Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_idtype.h
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
| typedef void (*IDTypeBlendReadDataFunction)(struct BlendDataReader *reader, struct ID *id); | typedef void (*IDTypeBlendReadDataFunction)(struct BlendDataReader *reader, struct ID *id); | ||||
| typedef void (*IDTypeBlendReadLibFunction)(struct BlendLibReader *reader, struct ID *id); | typedef void (*IDTypeBlendReadLibFunction)(struct BlendLibReader *reader, struct ID *id); | ||||
| typedef void (*IDTypeBlendReadExpandFunction)(struct BlendExpander *expander, struct ID *id); | typedef void (*IDTypeBlendReadExpandFunction)(struct BlendExpander *expander, struct ID *id); | ||||
| typedef void (*IDTypeBlendReadUndoPreserve)(struct BlendLibReader *reader, | typedef void (*IDTypeBlendReadUndoPreserve)(struct BlendLibReader *reader, | ||||
| struct ID *id_new, | struct ID *id_new, | ||||
| struct ID *id_old); | struct ID *id_old); | ||||
| typedef void (*IDTypeLibOverrideApplyPost)(struct ID *id_dst, struct ID *id_src); | |||||
| typedef struct IDTypeInfo { | typedef struct IDTypeInfo { | ||||
| /* ********** General IDType data. ********** */ | /* ********** General IDType data. ********** */ | ||||
| /** | /** | ||||
| * Unique identifier of this type, either as a short or an array of two chars, see DNA_ID.h's | * Unique identifier of this type, either as a short or an array of two chars, see DNA_ID.h's | ||||
| * ID_XX enums. | * ID_XX enums. | ||||
| */ | */ | ||||
| short id_code; | short id_code; | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | typedef struct IDTypeInfo { | ||||
| IDTypeBlendReadExpandFunction blend_read_expand; | IDTypeBlendReadExpandFunction blend_read_expand; | ||||
| /** | /** | ||||
| * Allow an ID type to preserve some of its data across (memfile) undo steps. | * Allow an ID type to preserve some of its data across (memfile) undo steps. | ||||
| * | * | ||||
| * \note Called from #setup_app_data when undoing or redoing a memfile step. | * \note Called from #setup_app_data when undoing or redoing a memfile step. | ||||
| */ | */ | ||||
| IDTypeBlendReadUndoPreserve blend_read_undo_preserve; | IDTypeBlendReadUndoPreserve blend_read_undo_preserve; | ||||
| /** | |||||
| * Called after library override operations have been applied. | |||||
| * | |||||
| * \note Currently needed for some update operation on point caches. | |||||
| */ | |||||
| IDTypeLibOverrideApplyPost lib_override_apply_post; | |||||
| } IDTypeInfo; | } IDTypeInfo; | ||||
| /* ********** Declaration of each IDTypeInfo. ********** */ | /* ********** Declaration of each IDTypeInfo. ********** */ | ||||
| /* Those are defined in the respective BKE files. */ | /* Those are defined in the respective BKE files. */ | ||||
| extern IDTypeInfo IDType_ID_SCE; | extern IDTypeInfo IDType_ID_SCE; | ||||
| extern IDTypeInfo IDType_ID_LI; | extern IDTypeInfo IDType_ID_LI; | ||||
| extern IDTypeInfo IDType_ID_OB; | extern IDTypeInfo IDType_ID_OB; | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||