Blender V4.5
Key Struct Reference

#include <DNA_key_types.h>

Public Attributes

ID id
 
struct AnimDataadt
 
KeyBlockrefkey
 
char elemstr [32]
 
int elemsize
 
char _pad [4]
 
ListBase block
 
struct Ipo *ipo DNA_DEPRECATED
 
IDfrom
 
int totkey
 
short flag
 
char type
 
char _pad2
 
float ctime
 
int uidgen
 

Detailed Description

Definition at line 65 of file DNA_key_types.h.

Member Data Documentation

◆ _pad

char Key::_pad[4]

Definition at line 89 of file DNA_key_types.h.

◆ _pad2

char Key::_pad2

Definition at line 104 of file DNA_key_types.h.

◆ adt

struct AnimData* Key::adt

Animation data (must be immediately after id for utilities to use it).

Definition at line 73 of file DNA_key_types.h.

◆ block

◆ ctime

float Key::ctime

Only used when (Key::type == KEY_NORMAL), this value is used as a time slider, rather than using the scene's time, this value can be animated to give greater control

Definition at line 108 of file DNA_key_types.h.

◆ DNA_DEPRECATED

struct Ipo* ipo Key::DNA_DEPRECATED

Old animation system, deprecated for 2.5.

Definition at line 94 of file DNA_key_types.h.

◆ elemsize

int Key::elemsize

◆ elemstr

char Key::elemstr[32]

This is not a regular string, although it is \0 terminated this is an array of (element_array_size, element_type) pairs (each one char) used for calculating shape key-blocks.

Definition at line 86 of file DNA_key_types.h.

◆ flag

short Key::flag

Definition at line 101 of file DNA_key_types.h.

◆ from

◆ id

◆ refkey

KeyBlock* Key::refkey

Commonly called 'Basis', (Key::type == KEY_RELATIVE) only. Looks like this is always 'key->block.first', perhaps later on it could be defined as some other KeyBlock - campbell.

Definition at line 80 of file DNA_key_types.h.

Referenced by calc_shapeKeys(), blender::ed::sculpt_paint::ShapeKeyData::from_object(), and shapekey_copy_data().

◆ totkey

int Key::totkey

(totkey == BLI_listbase_count(&key->block)).

Definition at line 99 of file DNA_key_types.h.

Referenced by bmo_mesh_to_bmesh_exec(), ED_mesh_join_objects_exec(), um_arraystore_expand(), and um_arraystore_free().

◆ type

char Key::type

Absolute or relative shape key (ShapekeyContainerType).

Definition at line 103 of file DNA_key_types.h.

Referenced by calc_shapeKeys(), ED_mesh_shapes_join_objects_exec(), and blender::io::fbx::import_blend_shapes().

◆ uidgen

int Key::uidgen

Can never be 0, this is used for detecting old data. current free UID for key-blocks.

Definition at line 114 of file DNA_key_types.h.

Referenced by BM_mesh_bm_from_me().


The documentation for this struct was generated from the following file: