diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-03-01 08:19:07 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-03-01 08:19:07 +0300 |
commit | 26932c21ebca087ad7b71f1cfa2f7f9e16328a44 (patch) | |
tree | c908c158bd3f671f0237ab79d4d3abc693c66df4 /source/blender/makesrna/intern/rna_sequencer.c | |
parent | da4ab26a478dd6e0f52c8bc8d0c324def048dfd9 (diff) |
Bugfix #21384: Bone Driven Shapekeys Child Evaluation Problem
Transform channel drivers for bones in 'localspace' was using the wrong matrix when getting the transforms. I had been assuming that pchan->chan_mat always contained only the matrix-ised transform values stored in the pchan (which is true while constraints are being evaluated, but not afterwards).
Changes:
- Added a new function to calculate this matrix instead of directly writing it on the pchan->chan_matrix field.
- Also, made the normalisation of the quaternion values during this process be done on a temp var instead of on the stored value. This was a constant source of confusion in the past, so let's see if we can do without it now :)
Unrelated to this commit, I've also fixed a compiler warning with previous commit that I missed (missing include).
Diffstat (limited to 'source/blender/makesrna/intern/rna_sequencer.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_sequencer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c index bacbf5f574e..7464df6eb79 100644 --- a/source/blender/makesrna/intern/rna_sequencer.c +++ b/source/blender/makesrna/intern/rna_sequencer.c @@ -35,6 +35,7 @@ #include "DNA_scene_types.h" #include "DNA_sequence_types.h" +#include "BKE_animsys.h" #include "BKE_sequencer.h" #include "MEM_guardedalloc.h" |