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:
authorTon Roosendaal <ton@blender.org>2005-10-25 23:40:13 +0400
committerTon Roosendaal <ton@blender.org>2005-10-25 23:40:13 +0400
commit129097a0971a2df28f1b8a386622a6347e14235c (patch)
tree1bfc2f074bcf75ab3e65abea9b857ec95a9b9fda /source
parent8a21421e5414aa3d7f43e9bbde4b805a193639a6 (diff)
Bugfix #3231
Constraint Ipos didnt work when the bone/channel had no Action Ipo... just had to move a line of code. :)
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/action.c4
-rw-r--r--source/blender/blenkernel/intern/constraint.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c
index 8d61c4ce865..64d6d1f5abd 100644
--- a/source/blender/blenkernel/intern/action.c
+++ b/source/blender/blenkernel/intern/action.c
@@ -505,14 +505,12 @@ void extract_pose_from_action(bPose *pose, bAction *act, float ctime)
if(achan) {
ipo = achan->ipo;
if (ipo) {
-
/* Evaluates and sets the internal ipo value */
calc_ipo(ipo, ctime);
/* This call also sets the pchan flags */
execute_action_ipo(achan, pchan);
-
- do_constraint_channels(&pchan->constraints, &achan->constraintChannels, ctime);
}
+ do_constraint_channels(&pchan->constraints, &achan->constraintChannels, ctime);
}
}
}
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index b0dbc49fcf6..0e682b3a58c 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -669,8 +669,8 @@ void do_constraint_channels (ListBase *conbase, ListBase *chanbase, float ctime)
switch (icu->adrcode){
case CO_ENFORCE:
con->enforce = icu->curval;
- if (con->enforce<0) con->enforce=0;
- else if (con->enforce>1) con->enforce=1;
+ if (con->enforce<0.0f) con->enforce= 0.0f;
+ else if (con->enforce>1.0f) con->enforce= 1.0f;
break;
}
}