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:
authorJoshua Leung <aligorith@gmail.com>2007-01-02 01:48:09 +0300
committerJoshua Leung <aligorith@gmail.com>2007-01-02 01:48:09 +0300
commit4f90a3a627713837b1967da41c4b4b5fa0e3efec (patch)
tree891d07219f53ddd7bf2c5660a89871fd3b0b0ead /source/blender/src/poseobject.c
parente07a76ea3fd169b88b0be2ec354d7e07d3cf2cc5 (diff)
== Armatures - Bone Paths ==
* Shuffled a few bone-path buttons in the Armature Visualisation panel. * Added a new option for bone-paths drawing: Calculate/show the path travelled by the 'head' (fat end) of bone. By default, this option is off. * Also, I forgot to mention in last commit that I had added an option which specified the time-difference between each highlighted point on the curve.
Diffstat (limited to 'source/blender/src/poseobject.c')
-rw-r--r--source/blender/src/poseobject.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/poseobject.c b/source/blender/src/poseobject.c
index 57170596818..862a9517bae 100644
--- a/source/blender/src/poseobject.c
+++ b/source/blender/src/poseobject.c
@@ -273,7 +273,14 @@ void pose_calculate_path(Object *ob)
if(arm->layer & pchan->bone->layer) {
if(pchan->path) {
fp= pchan->path+3*(CFRA-sfra);
- VECCOPY(fp, pchan->pose_tail);
+
+ if (arm->pathflag & ARM_PATH_HEADS) {
+ VECCOPY(fp, pchan->pose_head);
+ }
+ else {
+ VECCOPY(fp, pchan->pose_tail);
+ }
+
Mat4MulVecfl(ob->obmat, fp);
}
}