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>2008-05-29 10:14:53 +0400
committerJoshua Leung <aligorith@gmail.com>2008-05-29 10:14:53 +0400
commitfe7b591280ed1dec135d1cb95c5351dba4ec9d12 (patch)
tree0d6d19f85030bc398251072f42d3b508e4704b45 /source/blender/src/editarmature.c
parente015796b3667e40bba093d0d3b67cb8bcbcdd34a (diff)
Another bugfix for Fill Bone Between Joints. Changed the order that bones are created between 'head'/'tail' points
Diffstat (limited to 'source/blender/src/editarmature.c')
-rw-r--r--source/blender/src/editarmature.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c
index a68503b0d06..39f93510358 100644
--- a/source/blender/src/editarmature.c
+++ b/source/blender/src/editarmature.c
@@ -2443,11 +2443,11 @@ void fill_bones_armature(void)
}
/* assign head/tail combinations */
- if (headtail == 1) {
+ if (headtail == 2) {
VECCOPY(head, ebp->vec);
VECCOPY(tail, ebp2->vec);
}
- else if (headtail == 2) {
+ else if (headtail == 1) {
VECCOPY(head, ebp2->vec);
VECCOPY(tail, ebp->vec);
}
@@ -2457,7 +2457,7 @@ void fill_bones_armature(void)
newbone= add_points_bone(head, tail);
/* do parenting (will need to set connected flag too) */
- if (headtail == 1) {
+ if (headtail == 2) {
/* ebp tail or head - tail gets priority */
if (ebp->tail_owner)
newbone->parent= ebp->tail_owner;