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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2005-08-27 18:27:05 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2005-08-27 18:27:05 +0400
commit8f5bff6051025bbd4d5e0a127f7fef09ef226c1a (patch)
tree219aaf70466a360c7a5e80a983d0d130359fc873 /source/blender/blenloader/intern/readfile.c
parentae9dcb3dc2f36f9ae6f2ca94dedc34c681b86045 (diff)
Make IK DOF stiffness work in range 0.0-1.0, for consistency.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 7bf2706956a..9c18265476d 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4908,8 +4908,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
bPoseChannel *pchan;
bConstraint *con;
for(pchan= ob->pose->chanbase.first; pchan; pchan= pchan->next) {
- if (pchan->stiffness[0] == 0.0f) {
- pchan->stiffness[0]= pchan->stiffness[1]= pchan->stiffness[2]= 1.0;
+ if (pchan->limitmin[0] == 0.0f && pchan->limitmax[0] == 0.0f) {
pchan->limitmin[0]= pchan->limitmin[1]= pchan->limitmin[2]= -180.0f;
pchan->limitmax[0]= pchan->limitmax[1]= pchan->limitmax[2]= 180.0f;