Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvgproximity.c
| Show First 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | static bool isDisabled(const struct Scene *UNUSED(scene), | ||||
| /* If no vertex group, bypass. */ | /* If no vertex group, bypass. */ | ||||
| if (wmd->defgrp_name[0] == '\0') { | if (wmd->defgrp_name[0] == '\0') { | ||||
| return 1; | return 1; | ||||
| } | } | ||||
| /* If no target object, bypass. */ | /* If no target object, bypass. */ | ||||
| return (wmd->proximity_ob_target == NULL); | return (wmd->proximity_ob_target == NULL); | ||||
| } | } | ||||
| 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); | ||||
| WeightVGProximityModifierData *wmd = (WeightVGProximityModifierData *)md; | WeightVGProximityModifierData *wmd = (WeightVGProximityModifierData *)md; | ||||
| MDeformVert *dvert = NULL; | MDeformVert *dvert = NULL; | ||||
| MDeformWeight **dw, **tdw; | MDeformWeight **dw, **tdw; | ||||
| float(*v_cos)[3] = NULL; /* The vertices coordinates. */ | float(*v_cos)[3] = NULL; /* The vertices coordinates. */ | ||||
| Object *ob = ctx->object; | Object *ob = ctx->object; | ||||
| ▲ Show 20 Lines • Show All 215 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, | ||||
| }; | }; | ||||