Blender V2.61 - r43446
|
#include "DNA_cloth_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BKE_cloth.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_global.h"
#include "BKE_modifier.h"
#include "BKE_pointcache.h"
#include "depsgraph_private.h"
#include "MOD_util.h"
Go to the source code of this file.
Functions | |
static void | initData (ModifierData *md) |
static DerivedMesh * | applyModifier (ModifierData *md, Object *ob, DerivedMesh *dm, int UNUSED(useRenderParams), int UNUSED(isFinalCalc)) |
static void | updateDepgraph (ModifierData *md, DagForest *forest, Scene *scene, Object *ob, DagNode *obNode) |
static CustomDataMask | requiredDataMask (Object *UNUSED(ob), ModifierData *md) |
static void | copyData (ModifierData *md, ModifierData *target) |
static int | dependsOnTime (ModifierData *UNUSED(md)) |
static void | freeData (ModifierData *md) |
static void | foreachIDLink (ModifierData *md, Object *ob, IDWalkFunc walk, void *userData) |
Variables | |
ModifierTypeInfo | modifierType_Cloth |
Definition in file MOD_cloth.c.
static DerivedMesh* applyModifier | ( | ModifierData * | md, |
Object * | ob, | ||
DerivedMesh * | dm, | ||
int | UNUSEDuseRenderParams, | ||
int | UNUSEDisFinalCalc | ||
) | [static] |
Definition at line 70 of file MOD_cloth.c.
References CDDM_calc_normals(), clothModifier_do(), ClothModifierData::coll_parms, initData(), NULL, ModifierData::scene, and ClothModifierData::sim_parms.
static void copyData | ( | ModifierData * | md, |
ModifierData * | target | ||
) | [static] |
Definition at line 137 of file MOD_cloth.c.
References BKE_ptcache_copy_list(), BKE_ptcache_free_list(), ClothModifierData::clothObject, ClothModifierData::coll_parms, ClothSimSettings::effector_weights, MEM_dupallocN(), MEM_freeN(), NULL, ClothModifierData::point_cache, ClothModifierData::ptcaches, and ClothModifierData::sim_parms.
static int dependsOnTime | ( | ModifierData * | UNUSEDmd | ) | [static] |
Definition at line 162 of file MOD_cloth.c.
static void foreachIDLink | ( | ModifierData * | md, |
Object * | ob, | ||
IDWalkFunc | walk, | ||
void * | userData | ||
) | [static] |
Definition at line 191 of file MOD_cloth.c.
References ClothModifierData::coll_parms, ClothSimSettings::effector_weights, ClothCollSettings::group, EffectorWeights::group, and ClothModifierData::sim_parms.
static void freeData | ( | ModifierData * | md | ) | [static] |
Definition at line 167 of file MOD_cloth.c.
References BKE_ptcache_free_list(), cloth_free_modifier_extern(), ClothModifierData::coll_parms, ClothSimSettings::effector_weights, G, MEM_freeN(), NULL, ClothModifierData::point_cache, ClothModifierData::ptcaches, and ClothModifierData::sim_parms.
static void initData | ( | ModifierData * | md | ) | [static] |
Definition at line 55 of file MOD_cloth.c.
References BKE_ptcache_add(), cloth_init(), ClothModifierData::coll_parms, MEM_callocN(), ClothModifierData::point_cache, ClothModifierData::ptcaches, and ClothModifierData::sim_parms.
Referenced by applyModifier().
static CustomDataMask requiredDataMask | ( | Object * | UNUSEDob, |
ModifierData * | md | ||
) | [static] |
Definition at line 123 of file MOD_cloth.c.
References CD_MASK_CLOTH_ORCO, CD_MASK_MDEFORMVERT, cloth_uses_vgroup(), ClothSimSettings::shapekey_rest, and ClothModifierData::sim_parms.
static void updateDepgraph | ( | ModifierData * | md, |
DagForest * | forest, | ||
Scene * | scene, | ||
Object * | ob, | ||
DagNode * | obNode | ||
) | [static] |
Definition at line 97 of file MOD_cloth.c.
References Scene::base, dag_add_relation(), dag_get_node(), DAG_RL_DATA_DATA, DAG_RL_OB_DATA, eModifierType_Collision, ListBase::first, modifiers_findByType(), Base::next, and Base::object.
{ "Cloth", "ClothModifierData", sizeof(ClothModifierData), eModifierTypeType_Nonconstructive, eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_UsesPointCache | eModifierTypeFlag_Single, copyData, NULL, NULL, NULL, NULL, applyModifier, NULL, initData, requiredDataMask, freeData, NULL, updateDepgraph, dependsOnTime, NULL, NULL, foreachIDLink, NULL, }
Definition at line 205 of file MOD_cloth.c.