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:
authorCampbell Barton <ideasman42@gmail.com>2015-11-10 20:46:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-10 20:46:55 +0300
commit78836c021101a59886e4881fe57dc26a9a65753d (patch)
treed184ccefe529164e5e391a0a9c1542dbdc08a074 /source/blender/editors/transform/transform.c
parent3c1b00ef7e65583e6d4263b6fb0fd6e57387dad2 (diff)
Fix T46743: Crash w/ limit rotation constraint
Using axis-angle + limit rotations 'Transform' option was crashing.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index cd339e1e5a6..2fcdb19e60c 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -2650,7 +2650,7 @@ static void constraintob_from_transdata(bConstraintOb *cob, TransData *td)
}
else if (td->ext->rotOrder == ROT_MODE_AXISANGLE) {
/* axis angle */
- axis_angle_to_mat4(cob->matrix, &td->ext->quat[1], td->ext->quat[0]);
+ axis_angle_to_mat4(cob->matrix, td->ext->rotAxis, *td->ext->rotAngle);
}
else {
/* eulers */
@@ -2716,7 +2716,7 @@ static void constraintRotLim(TransInfo *UNUSED(t), TransData *td)
}
else if (td->ext->rotOrder == ROT_MODE_AXISANGLE) {
/* axis angle */
- mat4_to_axis_angle(&td->ext->quat[1], &td->ext->quat[0], cob.matrix);
+ mat4_to_axis_angle(td->ext->rotAxis, td->ext->rotAngle, cob.matrix);
}
else {
/* eulers */