Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_armature.c
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | #if 0 | ||||
| const ArmatureModifierData *amd = (const ArmatureModifierData *) md; | const ArmatureModifierData *amd = (const ArmatureModifierData *) md; | ||||
| #endif | #endif | ||||
| ArmatureModifierData *tamd = (ArmatureModifierData *) target; | ArmatureModifierData *tamd = (ArmatureModifierData *) target; | ||||
| modifier_copyData_generic(md, target, flag); | modifier_copyData_generic(md, target, flag); | ||||
| tamd->prevCos = NULL; | tamd->prevCos = NULL; | ||||
| } | } | ||||
| static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *UNUSED(md)) | static void requiredDataMask(Object *UNUSED(ob), ModifierData *UNUSED(md), CustomData_Masks *r_cddata_masks) | ||||
| { | { | ||||
| CustomDataMask dataMask = 0; | |||||
| /* ask for vertexgroups */ | /* ask for vertexgroups */ | ||||
| dataMask |= CD_MASK_MDEFORMVERT; | r_cddata_masks->vmask |= CD_MASK_MDEFORMVERT; | ||||
| return dataMask; | |||||
| } | } | ||||
| static bool isDisabled(const struct Scene *UNUSED(scene), ModifierData *md, bool UNUSED(useRenderParams)) | static bool isDisabled(const struct Scene *UNUSED(scene), ModifierData *md, bool UNUSED(useRenderParams)) | ||||
| { | { | ||||
| ArmatureModifierData *amd = (ArmatureModifierData *) md; | ArmatureModifierData *amd = (ArmatureModifierData *) md; | ||||
| return !amd->object; | return !amd->object; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines | |||||