Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvgproximity.c
| Show First 20 Lines • Show All 709 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_WeightVGProximity, panel_draw); | region_type, eModifierType_WeightVGProximity, 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 WeightVGProximityModifierData *wmd = (const WeightVGProximityModifierData *)md; | const WeightVGProximityModifierData *wmd = (const WeightVGProximityModifierData *)md; | ||||
| BLO_write_struct(writer, WeightVGProximityModifierData, 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) | ||||
| { | { | ||||
| WeightVGProximityModifierData *wmd = (WeightVGProximityModifierData *)md; | WeightVGProximityModifierData *wmd = (WeightVGProximityModifierData *)md; | ||||
| Show All 40 Lines | |||||