Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_laplaciandeform.c
| Show First 20 Lines • Show All 837 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| modifier_panel_end(layout, ptr); | modifier_panel_end(layout, ptr); | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| modifier_panel_register(region_type, eModifierType_LaplacianDeform, panel_draw); | modifier_panel_register(region_type, eModifierType_LaplacianDeform, panel_draw); | ||||
| } | } | ||||
| static void blendWrite(BlendWriter *writer, const ModifierData *md) | static void blendWrite(BlendWriter *writer, const ID *UNUSED(id_owner), const ModifierData *md) | ||||
| { | { | ||||
| LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData *)md; | LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData *)md; | ||||
| BLO_write_struct(writer, LaplacianDeformModifierData, lmd); | |||||
| BLO_write_float3_array(writer, lmd->verts_num, lmd->vertexco); | BLO_write_float3_array(writer, lmd->verts_num, lmd->vertexco); | ||||
| } | } | ||||
| static void blendRead(BlendDataReader *reader, ModifierData *md) | static void blendRead(BlendDataReader *reader, ModifierData *md) | ||||
| { | { | ||||
| LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData *)md; | LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData *)md; | ||||
| BLO_read_float3_array(reader, lmd->verts_num, &lmd->vertexco); | BLO_read_float3_array(reader, lmd->verts_num, &lmd->vertexco); | ||||
| Show All 34 Lines | |||||