Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_modifier.h
| Show First 20 Lines • Show All 358 Lines • ▼ Show 20 Lines | typedef struct ModifierTypeInfo { | ||||
| /** | /** | ||||
| * Is called when the modifier is written to a file. The modifier data struct itself is written | * Is called when the modifier is written to a file. The modifier data struct itself is written | ||||
| * already. | * already. | ||||
| * | * | ||||
| * This method should write any additional arrays and referenced structs that should be | * This method should write any additional arrays and referenced structs that should be | ||||
| * stored in the file. | * stored in the file. | ||||
| */ | */ | ||||
| void (*blendWrite)(struct BlendWriter *writer, const struct ModifierData *md); | void (*blendWrite)(struct BlendWriter *writer, | ||||
| const struct ID *id_owner, | |||||
| const struct ModifierData *md); | |||||
| /** | /** | ||||
| * Is called when the modifier is read from a file. | * Is called when the modifier is read from a file. | ||||
| * | * | ||||
| * It can be used to update pointers to arrays and other structs. Furthermore, fields that have | * It can be used to update pointers to arrays and other structs. Furthermore, fields that have | ||||
| * not been written (e.g. runtime data) can be reset. | * not been written (e.g. runtime data) can be reset. | ||||
| */ | */ | ||||
| void (*blendRead)(struct BlendDataReader *reader, struct ModifierData *md); | void (*blendRead)(struct BlendDataReader *reader, struct ModifierData *md); | ||||
| ▲ Show 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | |||||
| * \param get_cage_mesh: Return evaluated mesh with only deforming modifiers applied | * \param get_cage_mesh: Return evaluated mesh with only deforming modifiers applied | ||||
| * (i.e. mesh topology remains the same as original one, a.k.a. 'cage' mesh). | * (i.e. mesh topology remains the same as original one, a.k.a. 'cage' mesh). | ||||
| */ | */ | ||||
| struct Mesh *BKE_modifier_get_evaluated_mesh_from_evaluated_object(struct Object *ob_eval, | struct Mesh *BKE_modifier_get_evaluated_mesh_from_evaluated_object(struct Object *ob_eval, | ||||
| bool get_cage_mesh); | bool get_cage_mesh); | ||||
| void BKE_modifier_check_uuids_unique_and_report(const struct Object *object); | void BKE_modifier_check_uuids_unique_and_report(const struct Object *object); | ||||
| void BKE_modifier_blend_write(struct BlendWriter *writer, struct ListBase *modbase); | void BKE_modifier_blend_write(struct BlendWriter *writer, | ||||
| const struct ID *id_owner, | |||||
| struct ListBase *modbase); | |||||
| void BKE_modifier_blend_read_data(struct BlendDataReader *reader, | void BKE_modifier_blend_read_data(struct BlendDataReader *reader, | ||||
| struct ListBase *lb, | struct ListBase *lb, | ||||
| struct Object *ob); | struct Object *ob); | ||||
| void BKE_modifier_blend_read_lib(struct BlendLibReader *reader, struct Object *ob); | void BKE_modifier_blend_read_lib(struct BlendLibReader *reader, struct Object *ob); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||