|
Blender V4.3
|
#include <cstring>#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DNA_defaults.h"#include "DNA_object_types.h"#include "DNA_screen_types.h"#include "BKE_lattice.hh"#include "BKE_lib_query.hh"#include "BKE_mesh.hh"#include "BKE_modifier.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "RNA_prototypes.hh"#include "MEM_guardedalloc.h"#include "MOD_ui_common.hh"#include "MOD_util.hh"Go to the source code of this file.
Functions | |
| static void | init_data (ModifierData *md) |
| static void | required_data_mask (ModifierData *md, CustomData_MeshMasks *r_cddata_masks) |
| static bool | is_disabled (LatticeModifierData *lmd) |
| static bool | is_disabled (const Scene *, ModifierData *md, bool) |
| static void | foreach_ID_link (ModifierData *md, Object *ob, IDWalkFunc walk, void *user_data) |
| static void | update_depsgraph (ModifierData *md, const ModifierUpdateDepsgraphContext *ctx) |
| static void | deform_verts (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, blender::MutableSpan< blender::float3 > positions) |
| static void | deform_verts_EM (ModifierData *md, const ModifierEvalContext *ctx, const BMEditMesh *em, Mesh *mesh, blender::MutableSpan< blender::float3 > positions) |
| static void | panel_draw (const bContext *, Panel *panel) |
| static void | panel_register (ARegionType *region_type) |
Variables | |
| ModifierTypeInfo | modifierType_Lattice |
|
static |
Definition at line 88 of file MOD_lattice.cc.
References BKE_lattice_deform_coords_with_mesh(), LatticeModifierData::flag, MOD_previous_vcos_store(), LatticeModifierData::name, LatticeModifierData::object, ModifierEvalContext::object, and LatticeModifierData::strength.
Referenced by deform_verts_EM().
|
static |
Definition at line 108 of file MOD_lattice.cc.
References BKE_lattice_deform_coords_with_editmesh(), deform_verts(), LatticeModifierData::flag, ME_WRAPPER_TYPE_MDATA, MOD_previous_vcos_store(), LatticeModifierData::name, LatticeModifierData::object, ModifierEvalContext::object, and LatticeModifierData::strength.
|
static |
Definition at line 69 of file MOD_lattice.cc.
References IDWALK_CB_NOP, and LatticeModifierData::object.
|
static |
Definition at line 34 of file MOD_lattice.cc.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
|
static |
Definition at line 63 of file MOD_lattice.cc.
References is_disabled.
|
static |
The object type check is only needed here in case we have a placeholder Object assigned (because the library containing the lattice is missing). In other cases it should be impossible to have a type mismatch.
Definition at line 58 of file MOD_lattice.cc.
References OB_LATTICE, LatticeModifierData::object, and Object::type.
Definition at line 134 of file MOD_lattice.cc.
References Panel::layout, modifier_panel_end(), modifier_panel_get_property_pointers(), modifier_vgroup_ui(), ptr, UI_ITEM_NONE, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutSetPropSep().
Referenced by panel_register().
|
static |
Definition at line 152 of file MOD_lattice.cc.
References eModifierType_Lattice, modifier_panel_register(), and panel_draw().
|
static |
Definition at line 43 of file MOD_lattice.cc.
References CD_MASK_MDEFORMVERT, LatticeModifierData::name, and CustomData_MeshMasks::vmask.
|
static |
Definition at line 76 of file MOD_lattice.cc.
References DEG_add_depends_on_transform_relation(), DEG_add_object_relation(), DEG_OB_COMP_GEOMETRY, DEG_OB_COMP_TRANSFORM, is_disabled, ModifierUpdateDepsgraphContext::node, and LatticeModifierData::object.
| ModifierTypeInfo modifierType_Lattice |
Definition at line 157 of file MOD_lattice.cc.