Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_shapekey.c
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2005 Blender Foundation. All rights reserved. */ | * Copyright 2005 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup modifiers | * \ingroup modifiers | ||||
| */ | */ | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLT_translation.h" | |||||
| #include "DNA_key_types.h" | #include "DNA_key_types.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "BKE_key.h" | #include "BKE_key.h" | ||||
| #include "BKE_particle.h" | #include "BKE_particle.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | if (kb && kb->totelem == verts_num && kb != key->refkey) { | ||||
| for (a = 0; a < verts_num; a++) { | for (a = 0; a < verts_num; a++) { | ||||
| copy_m3_m3(defMats[a], scale); | copy_m3_m3(defMats[a], scale); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ModifierTypeInfo modifierType_ShapeKey = { | ModifierTypeInfo modifierType_ShapeKey = { | ||||
| /* name */ "ShapeKey", | /* name */ N_("ShapeKey"), | ||||
| /* structName */ "ShapeKeyModifierData", | /* structName */ "ShapeKeyModifierData", | ||||
| /* structSize */ sizeof(ShapeKeyModifierData), | /* structSize */ sizeof(ShapeKeyModifierData), | ||||
| /* srna */ &RNA_Modifier, | /* srna */ &RNA_Modifier, | ||||
| /* type */ eModifierTypeType_OnlyDeform, | /* type */ eModifierTypeType_OnlyDeform, | ||||
| /* flags */ eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_AcceptsVertexCosOnly | | /* flags */ eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_AcceptsVertexCosOnly | | ||||
| eModifierTypeFlag_SupportsEditmode, | eModifierTypeFlag_SupportsEditmode, | ||||
| /* icon */ ICON_DOT, | /* icon */ ICON_DOT, | ||||
| Show All 23 Lines | |||||