Bugfix #20940: Offset always resets to 1 in follow path constraint
[blender.git] / source / blender / blenkernel / intern / constraint.c
index 026cc899aad32320cf04970bd7c8e274d2c97287..dd4f518037fcc58ab351dc3a24a10d5993fb8bc3 100644 (file)
@@ -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) ) {