Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_hook.c
| Show First 20 Lines • Show All 513 Lines • ▼ Show 20 Lines | |||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Hook, panel_draw); | PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Hook, panel_draw); | ||||
| modifier_subpanel_register( | modifier_subpanel_register( | ||||
| region_type, "falloff", "Falloff", NULL, falloff_panel_draw, panel_type); | region_type, "falloff", "Falloff", NULL, falloff_panel_draw, panel_type); | ||||
| } | } | ||||
| static void blendWrite(BlendWriter *writer, const ModifierData *md) | static void blendWrite(BlendWriter *writer, const ID *UNUSED(id_owner), const ModifierData *md) | ||||
| { | { | ||||
| const HookModifierData *hmd = (const HookModifierData *)md; | const HookModifierData *hmd = (const HookModifierData *)md; | ||||
| BLO_write_struct(writer, HookModifierData, hmd); | |||||
| if (hmd->curfalloff) { | if (hmd->curfalloff) { | ||||
| BKE_curvemapping_blend_write(writer, hmd->curfalloff); | BKE_curvemapping_blend_write(writer, hmd->curfalloff); | ||||
| } | } | ||||
| BLO_write_int32_array(writer, hmd->indexar_num, hmd->indexar); | BLO_write_int32_array(writer, hmd->indexar_num, hmd->indexar); | ||||
| } | } | ||||
| static void blendRead(BlendDataReader *reader, ModifierData *md) | static void blendRead(BlendDataReader *reader, ModifierData *md) | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||