Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvgedit.c
| Show First 20 Lines • Show All 369 Lines • ▼ Show 20 Lines | static void panelRegister(ARegionType *region_type) | ||||
| PanelType *panel_type = modifier_panel_register( | PanelType *panel_type = modifier_panel_register( | ||||
| region_type, eModifierType_WeightVGEdit, panel_draw); | region_type, eModifierType_WeightVGEdit, 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); | ||||
| modifier_subpanel_register( | modifier_subpanel_register( | ||||
| region_type, "influence", "Influence", NULL, influence_panel_draw, panel_type); | region_type, "influence", "Influence", NULL, influence_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 WeightVGEditModifierData *wmd = (const WeightVGEditModifierData *)md; | const WeightVGEditModifierData *wmd = (const WeightVGEditModifierData *)md; | ||||
| BLO_write_struct(writer, WeightVGEditModifierData, wmd); | |||||
| if (wmd->cmap_curve) { | if (wmd->cmap_curve) { | ||||
| BKE_curvemapping_blend_write(writer, wmd->cmap_curve); | BKE_curvemapping_blend_write(writer, wmd->cmap_curve); | ||||
| } | } | ||||
| } | } | ||||
| static void blendRead(BlendDataReader *reader, ModifierData *md) | static void blendRead(BlendDataReader *reader, ModifierData *md) | ||||
| { | { | ||||
| WeightVGEditModifierData *wmd = (WeightVGEditModifierData *)md; | WeightVGEditModifierData *wmd = (WeightVGEditModifierData *)md; | ||||
| Show All 40 Lines | |||||