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:
parent
4271c1cc71
commit
50452f5b67
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue