Fix T49323: Ineffective bone roll calculation with low rig scale

The code was expecting vector to be normalized, however after
applying inverted object matrix it was possible to have scale
applied to it.
This commit is contained in:
Sergey Sharybin 2016-09-13 12:38:47 +02:00
parent 4271c1cc71
commit 50452f5b67
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ static int armature_calc_roll_exec(bContext *C, wmOperator *op)
if (type < 3) vec[type] = 1.0f;
else vec[type - 2] = -1.0f;
mul_m3_v3(imat, vec);
normalize_v3(vec);
}
if (axis_flip) negate_v3(vec);