Blender
V3.3
|
#include "BLI_utildefines.h"
#include "BLI_bitmap.h"
#include "BLI_math.h"
#include "BLT_translation.h"
#include "DNA_defaults.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "BKE_action.h"
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_editmesh.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_mesh.h"
#include "BKE_mesh_wrapper.h"
#include "BKE_modifier.h"
#include "BKE_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "BLO_read_write.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "DEG_depsgraph_query.h"
#include "MEM_guardedalloc.h"
#include "MOD_ui_common.h"
#include "MOD_util.h"
Go to the source code of this file.
Classes | |
struct | HookData_cb |
Variables | |
ModifierTypeInfo | modifierType_Hook |
|
static |
Definition at line 535 of file MOD_hook.c.
References BKE_curvemapping_blend_read(), BLO_read_data_address, BLO_read_int32_array(), HookModifierData::curfalloff, HookModifierData::indexar, and HookModifierData::indexar_num.
|
static |
Definition at line 522 of file MOD_hook.c.
References BKE_curvemapping_blend_write(), BLO_write_int32_array(), BLO_write_struct, HookModifierData::curfalloff, HookModifierData::indexar, and HookModifierData::indexar_num.
|
static |
Definition at line 59 of file MOD_hook.c.
References BKE_curvemapping_copy(), BKE_modifier_copydata_generic(), HookModifierData::curfalloff, HookModifierData::indexar, and MEM_dupallocN.
|
static |
Definition at line 426 of file MOD_hook.c.
References BKE_id_free(), deformVerts_do(), ELEM, mesh, MOD_deform_mesh_eval_get(), NULL, ModifierEvalContext::object, and HookData_cb::vertexCos.
|
static |
Definition at line 272 of file MOD_hook.c.
References BKE_curvemapping_add(), BKE_curvemapping_init(), BKE_pose_channel_find_name(), BLI_assert, BLI_BITMAP_TEST, BMEditMesh::bm, BM_ELEM_CD_GET_VOID_P, BM_ITER_MESH_INDEX, BM_VERTS_OF_MESH, CD_MDEFORMVERT, CD_ORIGINDEX, HookModifierData::cent, HookData_cb::cent, copy_m3_m4(), copy_m4_m4(), copy_v3_v3(), HookModifierData::curfalloff, HookData_cb::curfalloff, CustomData_get_layer(), CustomData_get_offset(), Object::data, HookData_cb::defgrp_index, eHook_Falloff_None, HookData_cb::fac_orig, HookModifierData::falloff, HookData_cb::falloff, HookData_cb::falloff_sq, HookModifierData::falloff_type, HookData_cb::falloff_type, HookModifierData::flag, HookModifierData::force, hook_co_apply(), hook_index_array_to_bitmap(), Object::imat, HookModifierData::indexar, invert_m4_m4(), HookData_cb::invert_vgroup, HookData_cb::mat, HookData_cb::mat_uniform, MEM_freeN, mesh, MOD_get_vgroup(), MOD_HOOK_INVERT_VGROUP, MOD_HOOK_UNIFORM_SPACE, mul_m4_m4m4(), mul_m4_series, mul_v3_m3v3(), HookModifierData::name, NULL, OB_MESH, HookModifierData::object, Object::obmat, HookModifierData::parentinv, Object::pose, bPoseChannel::pose_mat, square_f(), HookModifierData::subtarget, BMesh::totvert, Mesh::totvert, Object::type, unit_m3(), HookData_cb::use_falloff, HookData_cb::use_uniform, v, BMesh::vdata, Mesh::vdata, and HookData_cb::vertexCos.
Referenced by deformVerts(), and deformVertsEM().
|
static |
Definition at line 443 of file MOD_hook.c.
References deformVerts_do(), mesh, NULL, ModifierEvalContext::object, and HookData_cb::vertexCos.
Definition at line 491 of file MOD_hook.c.
References eWarp_Falloff_Curve, eWarp_Falloff_None, IFACE_, Panel::layout, modifier_panel_get_property_pointers(), NULL, ptr, RNA_enum_get(), uiItemR(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetPropSep(), uiTemplateCurveMapping(), and HookData_cb::use_falloff.
Referenced by panelRegister().
|
static |
Definition at line 107 of file MOD_hook.c.
References IDWALK_CB_NOP, and HookModifierData::object.
|
static |
Definition at line 89 of file MOD_hook.c.
References BKE_curvemapping_free(), HookModifierData::curfalloff, HookModifierData::indexar, and MEM_SAFE_FREE.
|
static |
Definition at line 235 of file MOD_hook.c.
References BKE_defvert_find_weight(), HookData_cb::cent, HookData_cb::defgrp_index, HookData_cb::fac_orig, hook_falloff(), interp_v3_v3v3(), HookData_cb::invert_vgroup, len_squared_v3v3(), HookData_cb::mat, HookData_cb::mat_uniform, mul_v3_m3v3(), mul_v3_m4v3(), NULL, HookData_cb::use_falloff, HookData_cb::use_uniform, and HookData_cb::vertexCos.
Referenced by deformVerts_do().
|
static |
Definition at line 169 of file MOD_hook.c.
References BKE_curvemapping_evaluateF(), BLI_assert, HookData_cb::curfalloff, eHook_Falloff_Const, eHook_Falloff_Curve, eHook_Falloff_InvSquare, eHook_Falloff_Linear, eHook_Falloff_None, eHook_Falloff_Root, eHook_Falloff_Sharp, eHook_Falloff_Smooth, eHook_Falloff_Sphere, HookData_cb::fac_orig, HookData_cb::falloff, HookData_cb::falloff_sq, HookData_cb::falloff_type, and sqrtf.
Referenced by hook_co_apply().
|
static |
Definition at line 155 of file MOD_hook.c.
References BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, and HookModifierData::indexar.
Referenced by deformVerts_do().
|
static |
Definition at line 48 of file MOD_hook.c.
References BKE_curvemapping_add(), BLI_assert, HookModifierData::curfalloff, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
|
static |
Definition at line 98 of file MOD_hook.c.
References HookModifierData::object.
Definition at line 455 of file MOD_hook.c.
References col, IFACE_, Panel::layout, modifier_panel_end(), modifier_panel_get_property_pointers(), modifier_vgroup_ui(), NULL, OB_ARMATURE, OB_MODE_EDIT, ptr, RNA_enum_get(), RNA_pointer_get(), RNA_pointer_is_null(), UI_ITEM_R_SLIDER, uiItemO(), uiItemPointerR(), uiItemR(), uiLayoutColumn(), uiLayoutRow(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 515 of file MOD_hook.c.
References eModifierType_Hook, falloff_panel_draw(), modifier_panel_register(), modifier_subpanel_register(), NULL, and panel_draw().
|
static |
Definition at line 71 of file MOD_hook.c.
References CD_MASK_MDEFORMVERT, CD_MASK_ORIGINDEX, CustomData_MeshMasks::emask, HookModifierData::indexar, HookModifierData::name, NULL, CustomData_MeshMasks::pmask, and CustomData_MeshMasks::vmask.
|
static |
Definition at line 114 of file MOD_hook.c.
References DEG_add_bone_relation(), DEG_add_modifier_to_transform_relation(), DEG_add_object_relation(), DEG_OB_COMP_BONE, DEG_OB_COMP_TRANSFORM, ModifierUpdateDepsgraphContext::node, NULL, HookModifierData::object, and HookModifierData::subtarget.
ModifierTypeInfo modifierType_Hook |
Definition at line 547 of file MOD_hook.c.