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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-09-13 13:38:47 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-09-13 13:38:47 +0300
commit7f67885526ee925dafd7ff5c0813b404cebd8a5d (patch)
tree86089918dbfaba422bf8776692ec069686592104 /source/blender/editors/armature
parent0307369211825afe1a5ae79a84b32a90da37868a (diff)
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.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/armature_edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/armature/armature_edit.c b/source/blender/editors/armature/armature_edit.c
index 354b748e129..ece0f18e96e 100644
--- a/source/blender/editors/armature/armature_edit.c
+++ b/source/blender/editors/armature/armature_edit.c
@@ -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);