Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvgmix.c
| Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | static bool isDisabled(const struct Scene *UNUSED(scene), | ||||
| ModifierData *md, | ModifierData *md, | ||||
| bool UNUSED(useRenderParams)) | bool UNUSED(useRenderParams)) | ||||
| { | { | ||||
| WeightVGMixModifierData *wmd = (WeightVGMixModifierData *)md; | WeightVGMixModifierData *wmd = (WeightVGMixModifierData *)md; | ||||
| /* If no vertex group, bypass. */ | /* If no vertex group, bypass. */ | ||||
| return (wmd->defgrp_name_a[0] == '\0'); | return (wmd->defgrp_name_a[0] == '\0'); | ||||
| } | } | ||||
| static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) | static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) | ||||
| { | { | ||||
| BLI_assert(mesh != NULL); | BLI_assert(mesh != NULL); | ||||
| WeightVGMixModifierData *wmd = (WeightVGMixModifierData *)md; | WeightVGMixModifierData *wmd = (WeightVGMixModifierData *)md; | ||||
| MDeformVert *dvert = NULL; | MDeformVert *dvert = NULL; | ||||
| MDeformWeight **dw1, **tdw1, **dw2, **tdw2; | MDeformWeight **dw1, **tdw1, **dw2, **tdw2; | ||||
| float *org_w; | float *org_w; | ||||
| ▲ Show 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | /* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsMapping | | ||||
| eModifierTypeFlag_SupportsEditmode | eModifierTypeFlag_UsesPreview, | eModifierTypeFlag_SupportsEditmode | eModifierTypeFlag_UsesPreview, | ||||
| /* copyData */ modifier_copyData_generic, | /* copyData */ modifier_copyData_generic, | ||||
| /* deformVerts */ NULL, | /* deformVerts */ NULL, | ||||
| /* deformMatrices */ NULL, | /* deformMatrices */ NULL, | ||||
| /* deformVertsEM */ NULL, | /* deformVertsEM */ NULL, | ||||
| /* deformMatricesEM */ NULL, | /* deformMatricesEM */ NULL, | ||||
| /* applyModifier */ applyModifier, | /* modifyMesh */ modifyMesh, | ||||
| /* modifyHair */ NULL, | |||||
| /* modifyPointCloud */ NULL, | |||||
| /* modifyVolume */ NULL, | |||||
| /* initData */ initData, | /* initData */ initData, | ||||
| /* requiredDataMask */ requiredDataMask, | /* requiredDataMask */ requiredDataMask, | ||||
| /* freeData */ NULL, | /* freeData */ NULL, | ||||
| /* isDisabled */ isDisabled, | /* isDisabled */ isDisabled, | ||||
| /* updateDepsgraph */ updateDepsgraph, | /* updateDepsgraph */ updateDepsgraph, | ||||
| /* dependsOnTime */ dependsOnTime, | /* dependsOnTime */ dependsOnTime, | ||||
| /* dependsOnNormals */ NULL, | /* dependsOnNormals */ NULL, | ||||
| /* foreachObjectLink */ foreachObjectLink, | /* foreachObjectLink */ foreachObjectLink, | ||||
| /* foreachIDLink */ foreachIDLink, | /* foreachIDLink */ foreachIDLink, | ||||
| /* foreachTexLink */ foreachTexLink, | /* foreachTexLink */ foreachTexLink, | ||||
| /* freeRuntimeData */ NULL, | /* freeRuntimeData */ NULL, | ||||
| }; | }; | ||||