Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-01-17 17:56:12 +0300
committerTon Roosendaal <ton@blender.org>2009-01-17 17:56:12 +0300
commitf705bdaa8903f4447072e31700500ce293a2c059 (patch)
tree9c85cff8aaf7d52f36f661c6b2e227156b5d92a2 /source/blender/editors/armature
parent932131be53cfe8c5068d9cc7b938544df63de0c3 (diff)
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!
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/poselib.c14
-rw-r--r--source/blender/editors/armature/poseobject.c17
2 files changed, 16 insertions, 15 deletions
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;