From f705bdaa8903f4447072e31700500ce293a2c059 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 17 Jan 2009 14:56:12 +0000 Subject: 2.5 Cleanup warnings from Joshua's commit (mostly unused variables, but also used functions that were not prototyped). Two bugfixes; passing on &ob->adt instead of ob->adt But; the DNA system is now messed up, with two structs using the same ID (nAction and bAction), that goes horrible wrong! --- source/blender/editors/armature/poselib.c | 14 +++++++------- source/blender/editors/armature/poseobject.c | 17 +++++++++-------- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'source/blender/editors/armature') diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c index ffbc787f01c..66d1776961f 100644 --- a/source/blender/editors/armature/poselib.c +++ b/source/blender/editors/armature/poselib.c @@ -193,7 +193,8 @@ bAction *poselib_init_new (Object *ob) /* init object's poselib action (unlink old one if there) */ if (ob->poselib) ob->poselib->id.us--; - ob->poselib= add_empty_action("PoseLib"); + // XXX old anim stuff + // ob->poselib= add_empty_action("PoseLib"); return ob->poselib; } @@ -272,11 +273,11 @@ void poselib_validate_act (bAction *act) } /* ************************************************************* */ +#if 0 // XXX old animation system /* This function adds an ipo-curve of the right type where it's needed */ static IpoCurve *poselib_verify_icu (Ipo *ipo, int adrcode) { -#if 0 // XXX old animation system IpoCurve *icu; for (icu= ipo->curve.first; icu; icu= icu->next) { @@ -297,9 +298,8 @@ static IpoCurve *poselib_verify_icu (Ipo *ipo, int adrcode) } return icu; -#endif // XXX old animation system - return NULL; } +#endif // XXX old animation system /* This tool adds the current pose to the poselib * Note: Standard insertkey cannot be used for this due to its limitations @@ -311,8 +311,8 @@ void poselib_add_current_pose (Scene *scene, Object *ob, int val) bPoseChannel *pchan; TimeMarker *marker; bAction *act; - bActionChannel *achan; - IpoCurve *icu; + // bActionChannel *achan; + // IpoCurve *icu; int frame; char name[64]; @@ -430,7 +430,7 @@ void poselib_remove_pose (Object *ob, TimeMarker *marker) { bPose *pose= (ob) ? ob->pose : NULL; bAction *act= (ob) ? ob->poselib : NULL; - bActionChannel *achan; + // bActionChannel *achan; char *menustr; int val; diff --git a/source/blender/editors/armature/poseobject.c b/source/blender/editors/armature/poseobject.c index 80b67ac70ac..da79c8b1bad 100644 --- a/source/blender/editors/armature/poseobject.c +++ b/source/blender/editors/armature/poseobject.c @@ -86,7 +86,6 @@ static void BIF_undo_push() {} static void countall() {} static void add_constraint() {} static void select_actionchannel_by_name() {} -static int autokeyframe_cfra_can_key() {return 0;} static void autokeyframe_pose_cb_func() {} /* ************* XXX *************** */ @@ -1423,7 +1422,8 @@ void pose_movetolayer(Scene *scene) } } - +#if 0 +// XXX old sys /* for use with pose_relax only */ static int pose_relax_icu(struct IpoCurve *icu, float framef, float *val, float *frame_prev, float *frame_next) { @@ -1479,6 +1479,7 @@ static int pose_relax_icu(struct IpoCurve *icu, float framef, float *val, float return 1; } } +#endif void pose_relax(Scene *scene) { @@ -1487,19 +1488,19 @@ void pose_relax(Scene *scene) bAction *act; bArmature *arm; - IpoCurve *icu_w, *icu_x, *icu_y, *icu_z; +// IpoCurve *icu_w, *icu_x, *icu_y, *icu_z; bPoseChannel *pchan; - bActionChannel *achan; - float framef = F_CFRA; - float frame_prev, frame_next; - float quat_prev[4], quat_next[4], quat_interp[4], quat_orig[4]; +// bActionChannel *achan; +// float framef = F_CFRA; +// float frame_prev, frame_next; +// float quat_prev[4], quat_next[4], quat_interp[4], quat_orig[4]; int do_scale = 0; int do_loc = 0; int do_quat = 0; int flag = 0; - int do_x, do_y, do_z; +// int do_x, do_y, do_z; if (!ob) return; -- cgit v1.2.3