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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-11-04 22:41:21 +0300
committerTon Roosendaal <ton@blender.org>2007-11-04 22:41:21 +0300
commit044ae7f82fcb8a5af774cd2a4bea392f54abf8c2 (patch)
tree5c053e5ab610d229d01ca281331da6fe7c71f1a3 /source
parentf996607632e08b7545f61b36ebc651c0ecff75ae (diff)
A different approach for the new driver option: it now uses pose-space
instead of bone-space. This makes it visual easier to use. For the todo: a large array of buttons for users to pick what kind of 'space' is used?
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/ipo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c
index 2e8dbccbe53..107633eda64 100644
--- a/source/blender/blenkernel/intern/ipo.c
+++ b/source/blender/blenkernel/intern/ipo.c
@@ -849,8 +849,10 @@ static float eval_driver(IpoDriver *driver, float ipotime)
if(pchan2 && pchan2->bone) {
float q1[4], q2[4], quat[4], angle;
- posechannel_get_local_transform(pchan , q1, NULL, NULL, 0);
- posechannel_get_local_transform(pchan2, q2, NULL, NULL, 0);
+ Mat4ToQuat(pchan->pose_mat, q1);
+ Mat4ToQuat(pchan2->pose_mat, q2);
+ // posechannel_get_local_transform(pchan , q1, NULL, NULL, 0);
+ // posechannel_get_local_transform(pchan2, q2, NULL, NULL, 0);
QuatInv(q1);
QuatMul(quat, q1, q2);