diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-03 12:05:31 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-03 12:05:31 +0300 |
commit | 53596fc6b8f47d9dec633b1ea5ae56a893d0cf3f (patch) | |
tree | 535776eddcc74e9a221b89f572fdb929820d2bf8 /source/blender/blenkernel/intern | |
parent | 742ef3b4cc5dabb337e6afe20d6f016106c8bc10 (diff) |
Bugfix #20940: Offset always resets to 1 in follow path constraint
Made the 'Offset Factor' setting use a separate variable from the 'Offset' setting in the DNA stuff. While we could get away with this sort of thing in the past, it turns out that with the Datablocks viewer these days, settings sharing an internal var but with different ranges/behaviour doesn't work well anymore, since later instances override earlier ones.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 026cc899aad..dd4f518037f 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -1206,7 +1206,7 @@ static void followpath_get_tarmat (bConstraint *con, bConstraintOb *cob, bConstr } else { /* fixed position along curve */ - curvetime= data->offset; // XXX might need a more sensible value + curvetime= data->offset_fac; } if ( where_on_path(ct->tar, curvetime, vec, dir, NULL, &radius) ) { |