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>2011-11-03 15:20:22 +0400
committerJoshua Leung <aligorith@gmail.com>2011-11-03 15:20:22 +0400
commit9e8a7c7e3156ac886ab4d018586fac951043876e (patch)
tree1043862bda2d443956c2d4c861cdac4d0f8c2ab7 /source/blender/blenkernel/intern/constraint.c
parentfa8fffac1c498dc37a372e63324da48ca15c0907 (diff)
Bugfix [#29113] "Follow path" constraint subframes calculated
incorrectly "Follow Path" constraint was applying subframe offsets to the curve- path evaltime value for non-fixed case. However, it turns out that when doing old-style mblur, this results in the offset getting applied twice, resulting in incorrect values (i.e. by the time the constraint gets ctime, this already has had subframe offset applied, and so too has curve evaltime).
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r--source/blender/blenkernel/intern/constraint.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index aebf3198cf4..d6d4e8304ba 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -1256,10 +1256,7 @@ static void followpath_get_tarmat (bConstraint *con, bConstraintOb *cob, bConstr
float quat[4];
if ((data->followflag & FOLLOWPATH_STATIC) == 0) {
/* animated position along curve depending on time */
- if (cob->scene)
- curvetime= bsystem_time(cob->scene, ct->tar, cu->ctime, 0.0) - data->offset;
- else
- curvetime= cu->ctime - data->offset;
+ curvetime= cu->ctime - data->offset;
/* ctime is now a proper var setting of Curve which gets set by Animato like any other var that's animated,
* but this will only work if it actually is animated...