diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-12-28 09:18:56 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-12-28 09:18:56 +0300 |
commit | 26104c7611c193a4d389789d8e5f13c2a71fa30b (patch) | |
tree | d99edd43b74e521e2c48c0faa2fc4397fc2fc773 /source/blender/editors/armature | |
parent | 71da1e96d174fe23da58af3119ccc7c653357585 (diff) |
- Silencing some gcc warnings (yay! I can finally use this setup
again)
- Graph Editor "Active Keyframe" panel now displays more descriptive
error messages. In particular, hopefully this helps to alert users of
the default generator modifier for Driver F-Curves
- The first F-Modifier added to a list is now set to be active one for
that list.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/editarmature.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index 829a1d78900..7c8ef511d22 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -5037,7 +5037,7 @@ static int pose_clear_rot_exec(bContext *C, wmOperator *UNUSED(op)) else { /* perform clamping using euler form (3-components) */ float eul[3], oldeul[3], quat1[4] = {0}; - float qlen; + float qlen = 0.0f; if (pchan->rotmode == ROT_MODE_QUAT) { qlen= normalize_qt_qt(quat1, pchan->quat); @@ -5061,10 +5061,10 @@ static int pose_clear_rot_exec(bContext *C, wmOperator *UNUSED(op)) if (pchan->rotmode == ROT_MODE_QUAT) { eul_to_quat(pchan->quat, eul); - + /* restore original quat size */ mul_qt_fl(pchan->quat, qlen); - + /* quaternions flip w sign to accumulate rotations correctly */ if ((quat1[0]<0.0f && pchan->quat[0]>0.0f) || (quat1[0]>0.0f && pchan->quat[0]<0.0f)) { mul_qt_fl(pchan->quat, -1.0f); |