|
Blender V4.3
|
#include <cstring>#include "BLI_utildefines.h"#include "BLI_listbase.h"#include "BLT_translation.hh"#include "DNA_cloth_types.h"#include "DNA_defaults.h"#include "DNA_key_types.h"#include "DNA_mesh_types.h"#include "DNA_object_force_types.h"#include "DNA_object_types.h"#include "DNA_screen_types.h"#include "MEM_guardedalloc.h"#include "BKE_cloth.hh"#include "BKE_customdata.hh"#include "BKE_effect.h"#include "BKE_global.hh"#include "BKE_key.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_modifier.hh"#include "BKE_pointcache.h"#include "UI_interface.hh"#include "UI_resources.hh"#include "RNA_prototypes.hh"#include "DEG_depsgraph_physics.hh"#include "DEG_depsgraph_query.hh"#include "MOD_ui_common.hh"Go to the source code of this file.
Functions | |
| static void | init_data (ModifierData *md) |
| static void | deform_verts (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, blender::MutableSpan< blender::float3 > positions) |
| static void | update_depsgraph (ModifierData *md, const ModifierUpdateDepsgraphContext *ctx) |
| static void | required_data_mask (ModifierData *md, CustomData_MeshMasks *r_cddata_masks) |
| static void | copy_data (const ModifierData *md, ModifierData *target, const int flag) |
| static bool | depends_on_time (Scene *, ModifierData *) |
| static void | free_data (ModifierData *md) |
| static void | foreach_ID_link (ModifierData *md, Object *ob, IDWalkFunc walk, void *user_data) |
| static void | panel_draw (const bContext *, Panel *panel) |
| static void | panel_register (ARegionType *region_type) |
Variables | |
| ModifierTypeInfo | modifierType_Cloth |
|
static |
Definition at line 154 of file MOD_cloth.cc.
References BKE_ptcache_copy_list(), BKE_ptcache_free_list(), BLI_findindex(), BLI_findlink(), ClothModifierData::clothObject, ClothModifierData::coll_parms, ClothSimSettings::effector_weights, eModifierFlag_SharedCaches, flag, ModifierData::flag, ClothModifierData::hairdata, LIB_ID_COPY_SET_COPIED_ON_WRITE, MEM_dupallocN, MEM_freeN(), ClothModifierData::modifier, ClothModifierData::point_cache, ClothModifierData::ptcaches, ClothModifierData::sim_parms, and ClothModifierData::solver_result.
|
static |
Definition at line 73 of file MOD_cloth.cc.
References BKE_key_from_object(), BKE_keyblock_find_by_index(), CD_CLOTH_ORCO, CD_SET_DEFAULT, clothModifier_do(), ClothModifierData::coll_parms, CustomData_add_layer(), CustomData_get_layer_for_write(), KeyBlock::data, DEG_get_evaluated_scene(), ModifierEvalContext::depsgraph, float, init_data(), ModifierEvalContext::object, ClothSimSettings::shapekey_rest, and ClothModifierData::sim_parms.
|
static |
Definition at line 195 of file MOD_cloth.cc.
|
static |
Definition at line 239 of file MOD_cloth.cc.
References ClothModifierData::coll_parms, ClothSimSettings::effector_weights, ClothCollSettings::group, EffectorWeights::group, IDWALK_CB_NOP, IDWALK_CB_USER, and ClothModifierData::sim_parms.
|
static |
Definition at line 200 of file MOD_cloth.cc.
References BKE_ptcache_free_list(), BLI_listbase_clear(), cloth_free_modifier_extern(), ClothModifierData::coll_parms, ClothSimSettings::effector_weights, eModifierFlag_SharedCaches, ModifierData::flag, G, G_DEBUG_SIMDATA, ClothModifierData::hairdata, MEM_freeN(), ClothModifierData::point_cache, printf, ClothModifierData::ptcaches, ClothModifierData::sim_parms, and ClothModifierData::solver_result.
|
static |
Definition at line 47 of file MOD_cloth.cc.
References BKE_effector_add_weights(), BKE_ptcache_add(), BLI_assert, ClothModifierData::coll_parms, DNA_struct_default_alloc, DNA_struct_default_get, ClothSimSettings::effector_weights, MEMCMP_STRUCT_AFTER_IS_ZERO, MEMCPY_STRUCT_AFTER, ClothModifierData::point_cache, ClothModifierData::ptcaches, ClothModifierData::sim_parms, and PointCache::step.
Referenced by deform_verts().
Definition at line 252 of file MOD_cloth.cc.
References Panel::layout, modifier_panel_end(), modifier_panel_get_property_pointers(), ptr, RPT_, and uiItemL().
Referenced by panel_register().
|
static |
Definition at line 263 of file MOD_cloth.cc.
References eModifierType_Cloth, modifier_panel_register(), and panel_draw().
|
static |
Definition at line 141 of file MOD_cloth.cc.
References CD_MASK_CLOTH_ORCO, CD_MASK_MDEFORMVERT, cloth_uses_vgroup(), ClothSimSettings::shapekey_rest, ClothModifierData::sim_parms, and CustomData_MeshMasks::vmask.
|
static |
Definition at line 123 of file MOD_cloth.cc.
References CLOTH_COLLSETTINGS_FLAG_ENABLED, ClothModifierData::coll_parms, DEG_add_collision_relations(), DEG_add_depends_on_transform_relation(), DEG_add_forcefield_relations(), ClothSimSettings::effector_weights, eModifierType_Collision, ClothCollSettings::flags, ClothCollSettings::group, ModifierUpdateDepsgraphContext::node, ModifierUpdateDepsgraphContext::object, and ClothModifierData::sim_parms.
| ModifierTypeInfo modifierType_Cloth |
Definition at line 268 of file MOD_cloth.cc.