Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_correctivesmooth.c
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
| static void freeData(ModifierData *md) | static void freeData(ModifierData *md) | ||||
| { | { | ||||
| CorrectiveSmoothModifierData *csmd = (CorrectiveSmoothModifierData *)md; | CorrectiveSmoothModifierData *csmd = (CorrectiveSmoothModifierData *)md; | ||||
| freeBind(csmd); | freeBind(csmd); | ||||
| } | } | ||||
| static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md) | static void requiredDataMask(Object *UNUSED(ob), ModifierData *md, CustomData_Masks *r_cddata_masks) | ||||
| { | { | ||||
| CorrectiveSmoothModifierData *csmd = (CorrectiveSmoothModifierData *)md; | CorrectiveSmoothModifierData *csmd = (CorrectiveSmoothModifierData *)md; | ||||
| CustomDataMask dataMask = 0; | |||||
| /* ask for vertex groups if we need them */ | /* ask for vertex groups if we need them */ | ||||
| if (csmd->defgrp_name[0]) { | if (csmd->defgrp_name[0] != '\0') { | ||||
| dataMask |= CD_MASK_MDEFORMVERT; | r_cddata_masks->vmask |= CD_MASK_MDEFORMVERT; | ||||
| } | } | ||||
| return dataMask; | |||||
| } | } | ||||
| /* check individual weights for changes and cache values */ | /* check individual weights for changes and cache values */ | ||||
| static void mesh_get_weights( | static void mesh_get_weights( | ||||
| MDeformVert *dvert, const int defgrp_index, | MDeformVert *dvert, const int defgrp_index, | ||||
| const unsigned int numVerts, const bool use_invert_vgroup, | const unsigned int numVerts, const bool use_invert_vgroup, | ||||
| float *smooth_weights) | float *smooth_weights) | ||||
| ▲ Show 20 Lines • Show All 645 Lines • Show Last 20 Lines | |||||