fix for [#28788] wasn't complete, pose bones scale was ignoring "Individual origins" setting.

This commit is contained in:
Campbell Barton 2011-10-03 16:20:05 +00:00
parent 782499717e
commit e5a11dfcd6

@ -2606,24 +2606,13 @@ static void ElementResize(TransInfo *t, TransData *td, float mat[3][3]) {
}
/* local constraint shouldn't alter center */
if (t->around == V3D_LOCAL) {
if (t->flag & T_OBJECT) {
copy_v3_v3(center, td->center);
}
else if (t->flag & T_EDIT) {
if( (t->settings->selectmode & SCE_SELECT_FACE) ||
(t->obedit && t->obedit->type == OB_ARMATURE))
{
copy_v3_v3(center, td->center);
}
else {
copy_v3_v3(center, t->center);
}
}
else {
copy_v3_v3(center, t->center);
}
if ((t->around == V3D_LOCAL) &&
( (t->flag & (T_OBJECT|T_POSE)) ||
((t->flag & T_EDIT) && (t->settings->selectmode & SCE_SELECT_FACE)) ||
(t->obedit && t->obedit->type == OB_ARMATURE))
)
{
copy_v3_v3(center, td->center);
}
else {
copy_v3_v3(center, t->center);