fix for warnings, add back pose relax into the pose menu.

This commit is contained in:
Campbell Barton 2010-02-25 15:10:27 +00:00
parent 4b80d4e60d
commit 57baa94631
4 changed files with 9 additions and 8 deletions

@ -1025,6 +1025,10 @@ class VIEW3D_MT_pose(bpy.types.Menu):
layout.separator()
layout.operator("pose.relax")
layout.separator()
layout.menu("VIEW3D_MT_pose_apply")
layout.separator()

@ -178,6 +178,7 @@ int face_select(struct bContext *C, struct Object *ob, short mval[2], int extend
void face_borderselect(struct bContext *C, struct Object *ob, struct rcti *rect, int select, int extend);
void selectall_tface(struct Object *ob, int action);
void select_linked_tfaces(struct bContext *C, struct Object *ob, short mval[2], int mode);
int minmax_tface(struct Object *ob, float *min, float *max);
/* object_vgroup.c */

@ -450,7 +450,7 @@ void selectswap_tface(Scene *scene)
// XXX notifier! object_tface_flags_changed(OBACT, 0);
}
int minmax_tface(Scene *scene, Object *ob, float *min, float *max)
int minmax_tface(Object *ob, float *min, float *max)
{
Mesh *me= get_mesh(ob);
MFace *mf;

@ -76,6 +76,7 @@
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_types.h"
#include "ED_mesh.h"
#include "UI_interface.h"
#include "UI_resources.h"
@ -1384,7 +1385,7 @@ static int viewselected_exec(bContext *C, wmOperator *op) /* like a localview wi
}
}
else if (paint_facesel_test(ob)) {
ok= minmax_tface(scene, ob, min, max);
ok= minmax_tface(ob, min, max);
}
else if (ob && (ob->mode & OB_MODE_PARTICLE_EDIT)) {
ok= PE_minmax(scene, min, max);
@ -1483,13 +1484,8 @@ static int viewcenter_cursor_exec(bContext *C, wmOperator *op)
}
else {
/* non camera center */
float *curs= give_cursor(scene, v3d);
float new_ofs[3];
new_ofs[0]= -curs[0];
new_ofs[1]= -curs[1];
new_ofs[2]= -curs[2];
negate_v3_v3(new_ofs, give_cursor(scene, v3d));
smooth_view(C, NULL, NULL, new_ofs, NULL, NULL, NULL);
}