18#include "RNA_prototypes.hh"
33 if (key && key->
block.first_) {
34 int deformedVerts_tot;
37 reinterpret_cast<float *
>(positions.
data()),
64 for (a = 0; a < positions.
size(); a++) {
97 for (
int a = 0; a < matrices.
size(); a++) {
106 "ShapeKeyModifierData",
Object is a sort of wrapper for general info.
constexpr int64_t size() const
constexpr T * data() const
float3x3 scale(float3x3 mat, float2 scale)
void copy_m3_m3(float m1[3][3], const float m2[3][3])
KeyBlock * BKE_keyblock_from_object(Object *ob)
float * BKE_key_evaluate_object_ex(Object *ob, int *r_totelem, float *arr, size_t arr_size, std::optional< Span< bool > > keys_to_process, ID *obdata)
static void deform_verts_EM(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, MutableSpan< float3 > positions)
static void deform_matrices(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, MutableSpan< float3 > positions, MutableSpan< float3x3 > matrices)
@ eModifierTypeFlag_AcceptsCVs
@ eModifierTypeFlag_SupportsEditmode
@ eModifierTypeFlag_AcceptsVertexCosOnly
void scale_m3_fl(float R[3][3], float scale)
static void deform_matrices_EM(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, MutableSpan< float3 > positions, MutableSpan< float3x3 > matrices)
ModifierTypeInfo modifierType_ShapeKey
static void deform_verts(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, MutableSpan< float3 > positions)
VecBase< float, 3 > float3
Key * BKE_key_from_object(Object *ob)
ListBaseT< KeyBlock > block
ShapekeyContainerType type
eObject_ShapeFlag shapeflag