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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2007-11-01 15:40:46 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2007-11-01 15:40:46 +0300
commitc5d2be76d771ed4ddf68a3f10b1b87bbeeb3d296 (patch)
tree56ba3afe941df6fc9712e3c6f99738d202fcc1ab /source
parentaa7c13c9a0f6612e47251647102efa35f653df88 (diff)
IK
== Solving is now done independent of scale, by scaling the chain to have a size of about 1.0. This solves some issues with small or big chains, and also makes the IK stretch setting independent of scale. The latter breaks backwards compatibility somewhat, but is an improvement over what it did before.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/armature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index a282fd24509..d5eb43fa12e 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -1598,7 +1598,7 @@ static void execute_posetree(Object *ob, PoseTree *tree)
if(tree->stretch && (pchan->ikstretch > 0.0)) {
float ikstretch = pchan->ikstretch*pchan->ikstretch;
- IK_SetStiffness(seg, IK_TRANS_Y, MIN2(1.0-ikstretch, 0.99));
+ IK_SetStiffness(seg, IK_TRANS_Y, MIN2(1.0-ikstretch, 0.999));
IK_SetLimit(seg, IK_TRANS_Y, 0.001, 1e10);
}
}