[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41491] trunk/blender/source/blender/ blenkernel/intern/constraint.c: Bugfix [#29113] "Follow path" constraint subframes calculated

Joshua Leung aligorith at gmail.com
Thu Nov 3 12:20:22 CET 2011


Revision: 41491
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41491
Author:   aligorith
Date:     2011-11-03 11:20:22 +0000 (Thu, 03 Nov 2011)
Log Message:
-----------
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).

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/constraint.c

Modified: trunk/blender/source/blender/blenkernel/intern/constraint.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/constraint.c	2011-11-03 10:18:58 UTC (rev 41490)
+++ trunk/blender/source/blender/blenkernel/intern/constraint.c	2011-11-03 11:20:22 UTC (rev 41491)
@@ -1256,10 +1256,7 @@
 			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... 




More information about the Bf-blender-cvs mailing list