Blender V2.61 - r43446
|
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_ghash.h"
#include "DNA_armature_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "BKE_action.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_deform.h"
#include "depsgraph_private.h"
#include "MOD_util.h"
Go to the source code of this file.
Functions | |
static void | copyData (ModifierData *md, ModifierData *target) |
static CustomDataMask | requiredDataMask (Object *UNUSED(ob), ModifierData *UNUSED(md)) |
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 DerivedMesh * | applyModifier (ModifierData *md, Object *ob, DerivedMesh *derivedData, int UNUSED(useRenderParams), int UNUSED(isFinalCalc)) |
Variables | |
ModifierTypeInfo | modifierType_Mask |
Definition in file MOD_mask.c.
static DerivedMesh* applyModifier | ( | ModifierData * | md, |
Object * | ob, | ||
DerivedMesh * | derivedData, | ||
int | UNUSEDuseRenderParams, | ||
int | UNUSEDisFinalCalc | ||
) | [static] |
Definition at line 97 of file MOD_mask.c.
References BLI_countlist(), BLI_ghash_free(), BLI_ghash_haskey(), BLI_ghash_insert(), BLI_ghash_lookup(), BLI_ghash_new(), BLI_ghashIterator_free(), BLI_ghashIterator_getKey(), BLI_ghashIterator_getValue(), BLI_ghashIterator_isDone(), BLI_ghashIterator_new(), BLI_ghashIterator_step(), BLI_ghashutil_intcmp(), BLI_ghashutil_inthash(), BLI_ghashutil_strcmp(), BLI_ghashutil_strhash(), bPoseChannel::bone, BONE_SELECTED, CD_MDEFORMVERT, CDDM_calc_normals(), CDDM_from_template(), CDDM_get_edge(), CDDM_get_face(), CDDM_get_vert(), MDeformWeight::def_nr, Object::defbase, defgroup_name_index(), defvert_find_weight(), DM_copy_edge_data(), DM_copy_face_data(), DM_copy_vert_data(), ELEM, ELEM3, FALSE, ListBase::first, MaskModifierData::flag, Bone::flag, GET_INT_FROM_POINTER, get_pose_channel(), DerivedMesh::getEdge, DerivedMesh::getFace, DerivedMesh::getNumEdges, DerivedMesh::getNumFaces, DerivedMesh::getNumVerts, DerivedMesh::getVert, DerivedMesh::getVertDataArray, i, MEM_freeN(), MEM_mallocN(), MOD_MASK_INV, MOD_MASK_MODE_ARM, MOD_MASK_MODE_VGROUP, MaskModifierData::mode, bDeformGroup::name, bDeformGroup::next, NULL, MaskModifierData::ob_arm, Object::pose, SET_INT_IN_POINTER, test_index_face(), TRUE, MFace::v1, MEdge::v1, MFace::v2, MEdge::v2, MFace::v3, MFace::v4, MaskModifierData::vgroup, and MDeformWeight::weight.
static void copyData | ( | ModifierData * | md, |
ModifierData * | target | ||
) | [static] |
Definition at line 58 of file MOD_mask.c.
References BLI_strncpy(), MaskModifierData::flag, and MaskModifierData::vgroup.
static void foreachObjectLink | ( | ModifierData * | md, |
Object * | ob, | ||
void(*)(void *userData, Object *ob, Object **obpoin) | walk, | ||
void * | userData | ||
) | [static] |
Definition at line 72 of file MOD_mask.c.
References MaskModifierData::ob_arm.
static CustomDataMask requiredDataMask | ( | Object * | UNUSEDob, |
ModifierData * | UNUSEDmd | ||
) | [static] |
Definition at line 67 of file MOD_mask.c.
References CD_MASK_MDEFORMVERT.
static void updateDepgraph | ( | ModifierData * | md, |
DagForest * | forest, | ||
struct Scene * | UNUSEDscene, | ||
Object * | UNUSEDob, | ||
DagNode * | obNode | ||
) | [static] |
Definition at line 81 of file MOD_mask.c.
References dag_add_relation(), dag_get_node(), DAG_RL_DATA_DATA, DAG_RL_OB_DATA, and MaskModifierData::ob_arm.
{ "Mask", "MaskModifierData", sizeof(MaskModifierData), eModifierTypeType_Nonconstructive, eModifierTypeFlag_AcceptsMesh|eModifierTypeFlag_SupportsMapping|eModifierTypeFlag_SupportsEditmode, copyData, NULL, NULL, NULL, NULL, applyModifier, NULL, NULL, requiredDataMask, NULL, NULL, updateDepgraph, NULL, NULL, foreachObjectLink, NULL, NULL, }
Definition at line 388 of file MOD_mask.c.