diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-15 18:50:48 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-15 18:50:48 +0400 |
commit | 2501bc1ad6cc88ce4e19fa5a3f81a4c79512ec42 (patch) | |
tree | 62b3cc56949be693ac242f5b74098ea2f9aaead8 | |
parent | 6f264a0e5b8ae310d31e3d82c42b78532fec47b6 (diff) |
- static'd several functions in key.c, just for readability
-rw-r--r-- | source/blender/blenkernel/BKE_key.h | 7 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 15 |
2 files changed, 7 insertions, 15 deletions
diff --git a/source/blender/blenkernel/BKE_key.h b/source/blender/blenkernel/BKE_key.h index b46f02cf81b..22b20e28b89 100644 --- a/source/blender/blenkernel/BKE_key.h +++ b/source/blender/blenkernel/BKE_key.h @@ -50,16 +50,9 @@ void make_local_key(struct Key *key); void sort_keys(struct Key *key); void set_four_ipo(float d, float *data, int type); void set_afgeleide_four_ipo(float d, float *data, int type); -int setkeys(float fac, struct ListBase *lb, struct KeyBlock *k[], float *t, int cycl); -void flerp(int aantal, float *in, float *f0, float *f1, float *f2, float *f3, float *t); void cp_key(int start, int end, int tot, char *poin, struct Key *key, struct KeyBlock *k, int mode); void cp_cu_key(struct Curve *cu, struct KeyBlock *kb, int start, int end); -void rel_flerp(int aantal, float *in, float *ref, float *out, float fac); -void do_rel_key(int start, int end, int tot, char *basispoin, struct Key *key, float ctime, int mode); -void do_key(int start, int end, int tot, char *poin, struct Key *key, struct KeyBlock **k, float *t, int mode); void do_mesh_key(struct Mesh *me); -void do_cu_key(struct Curve *cu, struct KeyBlock **k, float *t); -void do_rel_cu_key(struct Curve *cu, float ctime); void do_curve_key(struct Curve *cu); void do_latt_key(struct Lattice *lt); void do_ob_key(struct Object *ob); diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index 966eadeb2d5..d9218d78a27 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -275,7 +275,7 @@ void set_afgeleide_four_ipo(float d, float *data, int type) } } -int setkeys(float fac, ListBase *lb, KeyBlock *k[], float *t, int cycl) +static int setkeys(float fac, ListBase *lb, KeyBlock *k[], float *t, int cycl) { /* return 1 means k[2] is the position, return 0 means interpolate */ KeyBlock *k1, *firstkey; @@ -398,7 +398,7 @@ int setkeys(float fac, ListBase *lb, KeyBlock *k[], float *t, int cycl) } -void flerp(int aantal, float *in, float *f0, float *f1, float *f2, float *f3, float *t) +static void flerp(int aantal, float *in, float *f0, float *f1, float *f2, float *f3, float *t) { int a; @@ -563,7 +563,7 @@ void cp_cu_key(Curve *cu, KeyBlock *kb, int start, int end) } -void rel_flerp(int aantal, float *in, float *ref, float *out, float fac) +static void rel_flerp(int aantal, float *in, float *ref, float *out, float fac) { int a; @@ -574,7 +574,7 @@ void rel_flerp(int aantal, float *in, float *ref, float *out, float fac) -void do_rel_key(int start, int end, int tot, char *basispoin, Key *key, float ctime, int mode) +static void do_rel_key(int start, int end, int tot, char *basispoin, Key *key, float ctime, int mode) { KeyBlock *kb; IpoCurve *icu; @@ -686,7 +686,7 @@ void do_rel_key(int start, int end, int tot, char *basispoin, Key *key, float ct } -void do_key(int start, int end, int tot, char *poin, Key *key, KeyBlock **k, float *t, int mode) +static void do_key(int start, int end, int tot, char *poin, Key *key, KeyBlock **k, float *t, int mode) { float k1tot = 0.0, k2tot = 0.0, k3tot = 0.0, k4tot = 0.0; float k1d = 0.0, k2d = 0.0, k3d = 0.0, k4d = 0.0; @@ -941,7 +941,6 @@ void do_mesh_key(Mesh *me) if(flag && k[2]==me->key->refkey) tex_space_mesh(me); else boundbox_mesh(me, loc, size); - } else { @@ -971,7 +970,7 @@ void do_mesh_key(Mesh *me) } } -void do_cu_key(Curve *cu, KeyBlock **k, float *t) +static void do_cu_key(Curve *cu, KeyBlock **k, float *t) { Nurb *nu; int a, step = 0, tot; @@ -1007,7 +1006,7 @@ void do_cu_key(Curve *cu, KeyBlock **k, float *t) } } -void do_rel_cu_key(Curve *cu, float ctime) +static void do_rel_cu_key(Curve *cu, float ctime) { Nurb *nu; int a, step = 0, tot; |