Blender V2.61 - r43446
|
#include <string.h>
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "DNA_mesh_types.h"
#include "BLI_utildefines.h"
#include "BLI_string.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_lattice.h"
#include "BKE_modifier.h"
#include "MEM_guardedalloc.h"
#include "depsgraph_private.h"
#include "MOD_util.h"
Go to the source code of this file.
Functions | |
static void | initData (ModifierData *md) |
static void | copyData (ModifierData *md, ModifierData *target) |
static CustomDataMask | requiredDataMask (Object *UNUSED(ob), ModifierData *UNUSED(md)) |
static int | isDisabled (ModifierData *md, int UNUSED(useRenderParams)) |
static void | foreachObjectLink (ModifierData *md, Object *ob, void(*walk)(void *userData, Object *ob, Object **obpoin), void *userData) |
static void | updateDepgraph (ModifierData *md, DagForest *forest, struct Scene *UNUSED(scene), Object *UNUSED(ob), DagNode *obNode) |
static void | deformVerts (ModifierData *md, Object *ob, DerivedMesh *derivedData, float(*vertexCos)[3], int numVerts, int UNUSED(useRenderParams), int UNUSED(isFinalCalc)) |
static void | deformVertsEM (ModifierData *md, Object *ob, struct EditMesh *editData, DerivedMesh *derivedData, float(*vertexCos)[3], int numVerts) |
static void | deformMatricesEM (ModifierData *md, Object *ob, struct EditMesh *editData, DerivedMesh *derivedData, float(*vertexCos)[3], float(*defMats)[3][3], int numVerts) |
static void | deformMatrices (ModifierData *md, Object *ob, DerivedMesh *derivedData, float(*vertexCos)[3], float(*defMats)[3][3], int numVerts) |
Variables | |
ModifierTypeInfo | modifierType_Armature |
Definition in file MOD_armature.c.
static void copyData | ( | ModifierData * | md, |
ModifierData * | target | ||
) | [static] |
Definition at line 64 of file MOD_armature.c.
References BLI_strncpy(), ArmatureModifierData::defgrp_name, ArmatureModifierData::deformflag, ArmatureModifierData::multi, and ArmatureModifierData::object.
static void deformMatrices | ( | ModifierData * | md, |
Object * | ob, | ||
DerivedMesh * | derivedData, | ||
float(*) | vertexCos[3], | ||
float(*) | defMats[3][3], | ||
int | numVerts | ||
) | [static] |
Definition at line 177 of file MOD_armature.c.
References armature_deform_verts(), CDDM_from_mesh(), Object::data, ArmatureModifierData::defgrp_name, ArmatureModifierData::deformflag, NULL, ArmatureModifierData::object, and DerivedMesh::release.
static void deformMatricesEM | ( | ModifierData * | md, |
Object * | ob, | ||
struct EditMesh * | editData, | ||
DerivedMesh * | derivedData, | ||
float(*) | vertexCos[3], | ||
float(*) | defMats[3][3], | ||
int | numVerts | ||
) | [static] |
Definition at line 161 of file MOD_armature.c.
References armature_deform_verts(), CDDM_from_editmesh(), Object::data, ArmatureModifierData::defgrp_name, ArmatureModifierData::deformflag, NULL, ArmatureModifierData::object, and DerivedMesh::release.
static void deformVerts | ( | ModifierData * | md, |
Object * | ob, | ||
DerivedMesh * | derivedData, | ||
float(*) | vertexCos[3], | ||
int | numVerts, | ||
int | UNUSEDuseRenderParams, | ||
int | UNUSEDisFinalCalc | ||
) | [static] |
Definition at line 117 of file MOD_armature.c.
References armature_deform_verts(), ArmatureModifierData::defgrp_name, ArmatureModifierData::deformflag, MEM_freeN(), modifier_vgroup_cache(), NULL, ArmatureModifierData::object, and ArmatureModifierData::prevCos.
static void deformVertsEM | ( | ModifierData * | md, |
Object * | ob, | ||
struct EditMesh * | editData, | ||
DerivedMesh * | derivedData, | ||
float(*) | vertexCos[3], | ||
int | numVerts | ||
) | [static] |
Definition at line 138 of file MOD_armature.c.
References armature_deform_verts(), CDDM_from_editmesh(), Object::data, ArmatureModifierData::defgrp_name, ArmatureModifierData::deformflag, MEM_freeN(), modifier_vgroup_cache(), NULL, ArmatureModifierData::object, ArmatureModifierData::prevCos, and DerivedMesh::release.
static void foreachObjectLink | ( | ModifierData * | md, |
Object * | ob, | ||
void(*)(void *userData, Object *ob, Object **obpoin) | walk, | ||
void * | userData | ||
) | [static] |
Definition at line 92 of file MOD_armature.c.
References ArmatureModifierData::object.
static void initData | ( | ModifierData * | md | ) | [static] |
Definition at line 57 of file MOD_armature.c.
References ARM_DEF_ENVELOPE, ARM_DEF_VGROUP, and ArmatureModifierData::deformflag.
static int isDisabled | ( | ModifierData * | md, |
int | UNUSEDuseRenderParams | ||
) | [static] |
Definition at line 85 of file MOD_armature.c.
References ArmatureModifierData::object.
static CustomDataMask requiredDataMask | ( | Object * | UNUSEDob, |
ModifierData * | UNUSEDmd | ||
) | [static] |
Definition at line 75 of file MOD_armature.c.
References CD_MASK_MDEFORMVERT.
static void updateDepgraph | ( | ModifierData * | md, |
DagForest * | forest, | ||
struct Scene * | UNUSEDscene, | ||
Object * | UNUSEDob, | ||
DagNode * | obNode | ||
) | [static] |
Definition at line 102 of file MOD_armature.c.
References dag_add_relation(), dag_get_node(), DAG_RL_DATA_DATA, DAG_RL_OB_DATA, and ArmatureModifierData::object.
{ "Armature", "ArmatureModifierData", sizeof(ArmatureModifierData), eModifierTypeType_OnlyDeform, eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_SupportsEditmode, copyData, deformVerts, deformMatrices, deformVertsEM, deformMatricesEM, NULL, NULL, initData, requiredDataMask, NULL, isDisabled, updateDepgraph, NULL, NULL, foreachObjectLink, NULL, NULL, }
Definition at line 191 of file MOD_armature.c.