50
void free_key(struct Key *sc);
51
void free_key_nolib(struct Key *key);
52
struct Key *add_key(struct ID *id);
53
struct Key *copy_key(struct Key *key);
54
struct Key *copy_key_nolib(struct Key *key);
55
void make_local_key(struct Key *key);
56
void sort_keys(struct Key *key);
58
void key_curve_position_weights(float t, float *data, int type);
59
void key_curve_tangent_weights(float t, float *data, int type);
60
void key_curve_normal_weights(float t, float *data, int type);
62
float *do_ob_key(struct Scene *scene, struct Object *ob);
64
struct Key *ob_get_key(struct Object *ob);
65
struct KeyBlock *add_keyblock(struct Key *key, const char *name);
66
struct KeyBlock *add_keyblock_ctime(struct Key *key, const char * name, const short do_force);
67
struct KeyBlock *ob_get_keyblock(struct Object *ob);
68
struct KeyBlock *ob_get_reference_keyblock(struct Object *ob);
69
struct KeyBlock *key_get_keyblock(struct Key *key, int index);
70
struct KeyBlock *key_get_named_keyblock(struct Key *key, const char name[]);
71
char *key_get_curValue_rnaPath(struct Key *key, struct KeyBlock *kb);
50
void BKE_key_free(struct Key *sc);
51
void BKE_key_free_nolib(struct Key *key);
52
struct Key *BKE_key_add(struct ID *id);
53
struct Key *BKE_key_copy(struct Key *key);
54
struct Key *BKE_key_copy_nolib(struct Key *key);
55
void BKE_key_make_local(struct Key *key);
56
void BKE_key_sort(struct Key *key);
58
void key_curve_position_weights(float t, float data[4], int type);
59
void key_curve_tangent_weights(float t, float data[4], int type);
60
void key_curve_normal_weights(float t, float data[4], int type);
62
float *BKE_key_evaluate_object(struct Scene *scene, struct Object *ob, int *r_totelem);
64
struct Key *BKE_key_from_object(struct Object *ob);
65
struct KeyBlock *BKE_keyblock_from_object(struct Object *ob);
66
struct KeyBlock *BKE_keyblock_from_object_reference(struct Object *ob);
68
struct KeyBlock *BKE_keyblock_add(struct Key *key, const char *name);
69
struct KeyBlock *BKE_keyblock_add_ctime(struct Key *key, const char *name, const short do_force);
70
struct KeyBlock *BKE_keyblock_from_key(struct Key *key, int index);
71
struct KeyBlock *BKE_keyblock_find_name(struct Key *key, const char name[]);
72
void BKE_keyblock_copy_settings(struct KeyBlock *kb_dst, const struct KeyBlock *kb_src);
73
char *BKE_keyblock_curval_rnapath_get(struct Key *key, struct KeyBlock *kb);
72
74
// needed for the GE
73
void do_rel_key(const int start, int end, const int tot, char *basispoin, struct Key *key, struct KeyBlock *actkb, const int mode);
75
void BKE_key_evaluate_relative(const int start, int end, const int tot, char *basispoin, struct Key *key, struct KeyBlock *actkb, const int mode);
75
77
/* conversion functions */
76
void key_to_mesh(struct KeyBlock *kb, struct Mesh *me);
77
void mesh_to_key(struct Mesh *me, struct KeyBlock *kb);
78
void key_to_latt(struct KeyBlock *kb, struct Lattice *lt);
79
void latt_to_key(struct Lattice *lt, struct KeyBlock *kb);
80
void key_to_curve(struct KeyBlock *kb, struct Curve *cu, struct ListBase *nurb);
81
void curve_to_key(struct Curve *cu, struct KeyBlock *kb, struct ListBase *nurb);
82
float (*key_to_vertcos(struct Object *ob, struct KeyBlock *kb))[3];
83
void vertcos_to_key(struct Object *ob, struct KeyBlock *kb, float (*vertCos)[3]);
84
void offset_to_key(struct Object *ob, struct KeyBlock *kb, float (*ofs)[3]);
78
void BKE_key_convert_to_mesh(struct KeyBlock *kb, struct Mesh *me);
79
void BKE_key_convert_from_mesh(struct Mesh *me, struct KeyBlock *kb);
80
void BKE_key_convert_to_lattice(struct KeyBlock *kb, struct Lattice *lt);
81
void BKE_key_convert_from_lattice(struct Lattice *lt, struct KeyBlock *kb);
82
void BKE_key_convert_to_curve(struct KeyBlock *kb, struct Curve *cu, struct ListBase *nurb);
83
void BKE_key_convert_from_curve(struct Curve *cu, struct KeyBlock *kb, struct ListBase *nurb);
84
float (*BKE_key_convert_to_vertcos(struct Object *ob, struct KeyBlock *kb))[3];
85
void BKE_key_convert_from_vertcos(struct Object *ob, struct KeyBlock *kb, float (*vertCos)[3]);
86
void BKE_key_convert_from_offset(struct Object *ob, struct KeyBlock *kb, float (*ofs)[3]);
87
89
extern int slurph_opt;